~ruther/NosSmooth.Local

1dcaf8ae9d1d163e97eabde7ac4709a564ab8cc0 — Rutherther 2 years ago 77a89a2
fix: send feedback message with correct color so its in chat
1 files changed, 3 insertions(+), 1 deletions(-)

M src/Samples/HighLevel/SimplePiiBot/Commands/EntityCommands.cs
M src/Samples/HighLevel/SimplePiiBot/Commands/EntityCommands.cs => src/Samples/HighLevel/SimplePiiBot/Commands/EntityCommands.cs +3 -1
@@ 7,9 7,11 @@
using NosSmooth.ChatCommands;
using NosSmooth.Extensions.Combat.Errors;
using NosSmooth.Game;
using NosSmooth.Game.Apis;
using NosSmooth.LocalBinding;
using NosSmooth.LocalBinding.Objects;
using NosSmooth.LocalBinding.Structs;
using NosSmooth.Packets.Enums.Chat;
using Remora.Commands.Attributes;
using Remora.Commands.Groups;
using Remora.Results;


@@ 93,7 95,7 @@ public class EntityCommands : CommandGroup

        foreach (var entity in entities)
        {
            await _feedbackService.SendInfoMessageAsync($"Found entity: {entity.Id}", CancellationToken);
            await _feedbackService.SendMessageAsync($"Found entity: {entity.Id}", SayColor.Yellow, CancellationToken);
        }

        return Result.FromSuccess();

Do not follow this link