Delete original message from user after using !emojify
This commit is contained in:
parent
fe51dfe540
commit
ffab56d4a5
1 changed files with 8 additions and 0 deletions
|
@ -32,6 +32,14 @@ namespace Geekbot.Bot.Commands.Utils
|
||||||
|
|
||||||
await ReplyAsync($"{Context.User.Username}#{Context.User.Discriminator} said:");
|
await ReplyAsync($"{Context.User.Username}#{Context.User.Discriminator} said:");
|
||||||
await ReplyAsync(emojis);
|
await ReplyAsync(emojis);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
await Context.Message.DeleteAsync();
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
// bot may not have enough permission, doesn't matter if it fails
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue