Fixed issue where bot processed commands twice

This commit is contained in:
Elmon11 2020-10-28 13:29:53 +01:00 committed by GitHub
parent 3a0aa1e251
commit 78d670aa09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,6 @@ class Events(commands.Cog):
await message.delete()
await message.channel.send(f"{message.author.mention} do not post invite links to other discord servers.")
return
await self.bot.process_commands(message)
@commands.Cog.listener()
async def on_message_edit(self, before, after):