From cbdd985e9bc948d3923c7af7995c2aa42aebf5fb Mon Sep 17 00:00:00 2001 From: Thomas Voss <57815710+Mango0x45@users.noreply.github.com> Date: Thu, 4 Jun 2020 22:14:04 +0200 Subject: Update admin.py --- cogs/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/admin.py b/cogs/admin.py index bd05789..ac03d00 100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -14,7 +14,7 @@ class Admin(commands.Cog): return ctx.author.guild_permissions.manage_channels @commands.Cog.listener() - async def on_deleted_message(message): + async def on_deleted_message(self, message): channel = self.bot.get_channel(718187032869994686) embed = discord.Embed( title = f'Deleted Message by {message.author}', @@ -22,7 +22,7 @@ class Admin(commands.Cog): color = message.author.color, timestamp = message.created_at ) - await channel.send(embed) + await channel.send(embed=embed) @commands.command(aliases=['deleteEverything'], hidden=True) @commands.check(is_mod) -- cgit v1.2.3