Skip to content

Commit bd8a25e

Browse files
committed
enable delete message
1 parent 17576a1 commit bd8a25e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cogs/authorized.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -335,12 +335,12 @@ async def on_message(self, ctx: discord.Message):
335335
if ctx.author.id == self.bot.user.id:
336336
return
337337

338-
# if (
339-
# ctx.channel.id == 981966649953509446 and
340-
# 718064689140989983 not in [role.id for role in ctx.author.roles] and
341-
# ctx.author.id != self.bot.user.id
342-
# ):
343-
# await ctx.delete()
338+
if (
339+
ctx.channel.id == 981966649953509446 and
340+
718064689140989983 not in [role.id for role in ctx.author.roles] and
341+
ctx.author.id != self.bot.user.id
342+
):
343+
await ctx.delete()
344344
return
345345

346346
@interaction.listener()

0 commit comments

Comments
 (0)