fix(bot): 🐛 Error on empty messages.
This commit is contained in:
@@ -628,7 +628,12 @@ class Calls(base.Cog):
|
|||||||
message (discord.Message): The message received.
|
message (discord.Message): The message received.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if message.author.bot or message.is_system() or len(message.stickers) > 0:
|
if (
|
||||||
|
message.author.bot
|
||||||
|
or message.is_system()
|
||||||
|
or len(message.stickers) > 0
|
||||||
|
or not message.content
|
||||||
|
):
|
||||||
return
|
return
|
||||||
|
|
||||||
if (await self.bot.get_context(message)).valid:
|
if (await self.bot.get_context(message)).valid:
|
||||||
|
|||||||
Reference in New Issue
Block a user