Use get_channel_or_thread so that threads can be found.
build_develop / build (push) Successful in 38s
build_develop / build (push) Successful in 38s
This commit is contained in:
+1
-1
@@ -342,7 +342,7 @@ async def send_highscore_message(session: Session, guild: nextcord.Guild, group:
|
||||
group (CategoryGroup): group to post to the message.
|
||||
"""
|
||||
highscore_string = format_highscore_message(session, group)
|
||||
if (channel := guild.get_channel(group.channel_id)) is None:
|
||||
if (channel := guild.get_channel_or_thread(group.channel_id)) is None:
|
||||
agon_logger.error("Channel id %s in guild %s does not exist.", group.channel_id, guild.id)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user