Skip to content

Commit 2a3e1c4

Browse files
AmbratolmAmbratolm
authored andcommitted
Console: Fixed prg for vc,txt,thrd chans.
1 parent 6f05e84 commit 2a3e1c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot/cogs/console_cog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ async def purge(
227227
embed=EmbedX.error("No channel to purge messages from."),
228228
ephemeral=True,
229229
)
230-
if not (isinstance(channel, TextChannel) or isinstance(channel, Thread)):
230+
if not isinstance(channel, (TextChannel, Thread, VoiceChannel)):
231231
return await interaction.followup.send(
232232
embed=EmbedX.error(
233-
"This command can only be used in text channels."
233+
"This command can only be used in text channels, threads, or voice channel chats."
234234
),
235235
ephemeral=True,
236236
)

0 commit comments

Comments
 (0)