aboutsummaryrefslogtreecommitdiff
path: root/cogs
diff options
context:
space:
mode:
authorThomas Voss <57815710+Mango0x45@users.noreply.github.com>2020-06-04 20:14:04 +0000
committerGitHub <noreply@github.com>2020-06-04 20:14:04 +0000
commitcbdd985e9bc948d3923c7af7995c2aa42aebf5fb (patch)
tree8e071fc556f2864c9e8b23915e4d7ec21aacf195 /cogs
parent97bb19afd39095fb12bb3088a4ade5bcce69463e (diff)
downloadsteve-bot-cbdd985e9bc948d3923c7af7995c2aa42aebf5fb.tar
steve-bot-cbdd985e9bc948d3923c7af7995c2aa42aebf5fb.tar.gz
steve-bot-cbdd985e9bc948d3923c7af7995c2aa42aebf5fb.tar.bz2
steve-bot-cbdd985e9bc948d3923c7af7995c2aa42aebf5fb.tar.lz
steve-bot-cbdd985e9bc948d3923c7af7995c2aa42aebf5fb.tar.xz
steve-bot-cbdd985e9bc948d3923c7af7995c2aa42aebf5fb.tar.zst
steve-bot-cbdd985e9bc948d3923c7af7995c2aa42aebf5fb.zip
Update admin.py
Diffstat (limited to 'cogs')
-rw-r--r--cogs/admin.py4
1 files 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)