appservice: fix attachments (message content can be empty)

This commit is contained in:
git-bruh 2021-04-25 10:36:35 +05:30
parent a481efeee3
commit 6b20650503
No known key found for this signature in database
GPG key ID: E1475C50075ADCE6

View file

@ -397,7 +397,6 @@ class DiscordClient(Gateway):
def to_return(self, message: discord.Message) -> bool:
return (
message.channel_id not in self.app.db.list_channels()
or not message.content
or not message.author # Embeds can be weird sometimes.
or message.webhook_id
in [hook.id for hook in self.webhook_cache.values()]