diff --git a/agon/utils.py b/agon/utils.py index 5fed6db..91208f9 100644 --- a/agon/utils.py +++ b/agon/utils.py @@ -346,7 +346,7 @@ async def send_highscore_message(session: Session, guild: nextcord.Guild, group: agon_logger.error("Channel id %s in guild %s does not exist.", group.channel_id, guild.id) return - if not isinstance(channel, nextcord.TextChannel) or not isinstance(channel, nextcord.Thread): + if not isinstance(channel, nextcord.TextChannel | nextcord.Thread): agon_logger.error( "Channel id %s in guild %s is does not correspond to a TextChannel or Thread.", channel.id, channel.guild.id )