Delete original message from user after using !emojify

This commit is contained in:
runebaas 2020-10-23 21:46:59 +02:00
parent fe51dfe540
commit ffab56d4a5
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6

View file

@ -32,6 +32,14 @@ namespace Geekbot.Bot.Commands.Utils
await ReplyAsync($"{Context.User.Username}#{Context.User.Discriminator} said:");
await ReplyAsync(emojis);
try
{
await Context.Message.DeleteAsync();
}
catch
{
// bot may not have enough permission, doesn't matter if it fails
}
}
catch (Exception e)
{