Skip to content

Commit

Permalink
revert to using channel ID
Browse files Browse the repository at this point in the history
  • Loading branch information
PBillingsby committed Nov 11, 2024
1 parent 1e4ee9e commit e836db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logs_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.name == '🙋🏻│i-need-help' and message.attachments:
if isinstance(message.channel, discord.Thread) and message.channel.parent_id == "1230231823674642513" and message.attachments:
for attachment in message.attachments:
if attachment.filename.lower().endswith(('.png', '.jpg', '.jpeg', '.avif', '.webp')):
try:
Expand Down

0 comments on commit e836db7

Please sign in to comment.