We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 157c8b9 commit 6f05e84Copy full SHA for 6f05e84
bot/cogs/console_cog.py
@@ -3,6 +3,7 @@
3
Interaction,
4
Member,
5
TextChannel,
6
+ Thread,
7
User,
8
VoiceChannel,
9
app_commands,
@@ -226,9 +227,7 @@ async def purge(
226
227
embed=EmbedX.error("No channel to purge messages from."),
228
ephemeral=True,
229
)
- if not isinstance(channel, TextChannel) or not isinstance(
230
- channel, VoiceChannel
231
- ):
+ if not (isinstance(channel, TextChannel) or isinstance(channel, Thread)):
232
return await interaction.followup.send(
233
embed=EmbedX.error(
234
"This command can only be used in text channels."
0 commit comments