Skip to content

Commit 6f05e84

Browse files
AmbratolmAmbratolm
authored andcommitted
Console: Fixed prg for vc thread.
1 parent 157c8b9 commit 6f05e84

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bot/cogs/console_cog.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Interaction,
44
Member,
55
TextChannel,
6+
Thread,
67
User,
78
VoiceChannel,
89
app_commands,
@@ -226,9 +227,7 @@ async def purge(
226227
embed=EmbedX.error("No channel to purge messages from."),
227228
ephemeral=True,
228229
)
229-
if not isinstance(channel, TextChannel) or not isinstance(
230-
channel, VoiceChannel
231-
):
230+
if not (isinstance(channel, TextChannel) or isinstance(channel, Thread)):
232231
return await interaction.followup.send(
233232
embed=EmbedX.error(
234233
"This command can only be used in text channels."

0 commit comments

Comments
 (0)