feat: add reaction checkmark on command message delete in DMs

This commit is contained in:
spiral 2021-10-06 19:46:49 -04:00
parent ecce906c99
commit 92c1b4de56
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -150,6 +150,9 @@ namespace PluralKit.Bot
if (ctx.Guild != null) if (ctx.Guild != null)
await ctx.Rest.DeleteMessage(ctx.Message); await ctx.Rest.DeleteMessage(ctx.Message);
else
await ctx.Rest.CreateReaction(ctx.Message.ChannelId, ctx.Message.Id, new() { Name = Emojis.Success });
return; return;
} }
if (ctx.Match("author") || ctx.MatchFlag("author")) if (ctx.Match("author") || ctx.MatchFlag("author"))