1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-02 20:19:55 +03:00

Keep reply emojis as consts in a separate class (#8)

This commit is contained in:
Macintxsh 2022-12-06 18:33:46 +03:00 committed by GitHub
parent 1258496697
commit 2596b48bde
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 65 additions and 52 deletions

View file

@ -1,4 +1,4 @@
using Discord;
using Discord;
using Discord.WebSocket;
namespace Boyfriend.Commands;
@ -29,7 +29,7 @@ public sealed class BanCommand : ICommand {
var feedback = string.Format(Messages.FeedbackUserBanned, toBan.Mention,
Utils.GetHumanizedTimeOffset(duration), Utils.Wrap(reason));
cmd.Reply(feedback, ":hammer: ");
cmd.Reply(feedback, ReplyEmojis.Banned);
cmd.Audit(feedback);
if (duration.TotalSeconds > 0)