diff --git a/logs_bot.py b/logs_bot.py index 834f9c6..f4d6423 100644 --- a/logs_bot.py +++ b/logs_bot.py @@ -32,7 +32,7 @@ async def on_message(message): return # If the message is in a thread under the 'i-need-help' forum channel using ID and contains attachments - if isinstance(message.channel, discord.Thread) and message.channel.parent_id == 1230231823674642513 and message.attachments: + if isinstance(message.channel, discord.Thread) and message.channel.parent.name == '🙋🏻│i-need-help' and message.attachments: for attachment in message.attachments: if attachment.filename.lower().endswith(('.png', '.jpg', '.jpeg', '.avif', '.webp')): try: