dont send empty message (embed)

This commit is contained in:
git-bruh 2021-01-03 14:06:20 +05:30
parent fa83aca814
commit 64b3cea7a0
No known key found for this signature in database
GPG key ID: E1475C50075ADCE6

View file

@ -175,7 +175,8 @@ class DiscordClient(discord.ext.commands.Bot):
async def on_message(self, message): async def on_message(self, message):
await self.process_commands(message) await self.process_commands(message)
if self.to_return(message.channel.id, message.author): if self.to_return(message.channel.id, message.author) \
or not message.content:
return return
content = await self.process_message(message) content = await self.process_message(message)