Merge branch 'main' of https://gitea.cheezers.org/imcompiling/agon
build_latest / build (push) Successful in 37s
build_latest / build (push) Successful in 37s
This commit is contained in:
@@ -101,7 +101,7 @@ class SubmissionCog(commands.Cog):
|
||||
await interaction.response.send_message(error_response, ephemeral=True)
|
||||
return
|
||||
|
||||
if not isinstance(channel, nextcord.TextChannel):
|
||||
if not isinstance(channel, nextcord.TextChannel | nextcord.Thread):
|
||||
await interaction.response.send_message("An error happened with submission.")
|
||||
agon_logger.error(
|
||||
"Channel id %s in guild %s is does not correspond to a TextChannel.", channel.id, channel.guild.id
|
||||
|
||||
Reference in New Issue
Block a user