Add thread as an option everywhere a textchannel is used.
build_develop / build (push) Successful in 35s
build_develop / build (push) Successful in 35s
This commit is contained in:
@@ -103,7 +103,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