aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/utils/attachment_pastebin_uploader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utils/attachment_pastebin_uploader.py b/bot/exts/utils/attachment_pastebin_uploader.py
index 357b0feef..03439390b 100644
--- a/bot/exts/utils/attachment_pastebin_uploader.py
+++ b/bot/exts/utils/attachment_pastebin_uploader.py
@@ -79,7 +79,7 @@ class AutoTextAttachmentUploader(commands.Cog):
async def on_message(self, message: discord.Message) -> None:
"""Listens for messages containing attachments and offers to upload them to the pastebin."""
# Check if the message contains an embedded file and is not sent by a bot.
- if message.author.bot or not any(a.content_type.startswith("text") for a in message.attachments):
+ if message.author.bot or not any("charset" in a.content_type for a in message.attachments):
return
log.trace(f"Offering to upload attachments for {message.author} in {message.channel}, message {message.id}")