From 92c1b4de561da3987733a6375f1c6cc1374ce31b Mon Sep 17 00:00:00 2001 From: spiral Date: Wed, 6 Oct 2021 19:46:49 -0400 Subject: [PATCH] feat: add reaction checkmark on command message delete in DMs --- PluralKit.Bot/Commands/Message.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PluralKit.Bot/Commands/Message.cs b/PluralKit.Bot/Commands/Message.cs index 6f7ba28f..0f8bc225 100644 --- a/PluralKit.Bot/Commands/Message.cs +++ b/PluralKit.Bot/Commands/Message.cs @@ -150,6 +150,9 @@ namespace PluralKit.Bot if (ctx.Guild != null) await ctx.Rest.DeleteMessage(ctx.Message); + else + await ctx.Rest.CreateReaction(ctx.Message.ChannelId, ctx.Message.Id, new() { Name = Emojis.Success }); + return; } if (ctx.Match("author") || ctx.MatchFlag("author"))