diff options
author | Thomas Voss <57815710+Mango0x45@users.noreply.github.com> | 2020-06-04 19:58:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 19:58:03 +0000 |
commit | 46f253fa9814ede5edc44a969b7cc68757692890 (patch) | |
tree | e9962728911debb8af0d012cbac392e2317ba9a5 | |
parent | b5a680dee228356edd3e21157b24923a173b1db0 (diff) | |
download | steve-bot-46f253fa9814ede5edc44a969b7cc68757692890.tar steve-bot-46f253fa9814ede5edc44a969b7cc68757692890.tar.gz steve-bot-46f253fa9814ede5edc44a969b7cc68757692890.tar.bz2 steve-bot-46f253fa9814ede5edc44a969b7cc68757692890.tar.lz steve-bot-46f253fa9814ede5edc44a969b7cc68757692890.tar.xz steve-bot-46f253fa9814ede5edc44a969b7cc68757692890.tar.zst steve-bot-46f253fa9814ede5edc44a969b7cc68757692890.zip |
Added on_deleted_message()
-rw-r--r-- | cogs/admin.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cogs/admin.py b/cogs/admin.py index 2bf7750..8a0b866 100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -12,6 +12,17 @@ class Admin(commands.Cog): async def is_mod(ctx): return ctx.author.guild_permissions.manage_channels + + @commands.Cog.listener() + async def on_deleted_message(message): + channel = self.bot.get_channel(718187032869994686) + embed = discord.Embed( + title = f'Deleted Message by {message.author}', + description = 'message.content', + color = message.author.color, + timestamp = message.created_at + ) + await channel.send(embed) @commands.command(aliases=['deleteEverything'], hidden=True) @commands.check(is_mod) |