appservice: fix attachments (message content can be empty)
This commit is contained in:
parent
a481efeee3
commit
6b20650503
1 changed files with 0 additions and 1 deletions
|
@ -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()]
|
||||
|
|
Loading…
Reference in a new issue