Skip to content

Commit 157c8b9

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bot/cogs/console_cog.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ async def purge(
226226
embed=EmbedX.error("No channel to purge messages from."),
227227
ephemeral=True,
228228
)
229-
if not isinstance(channel, TextChannel):
229+
if not isinstance(channel, TextChannel) or not isinstance(
230+
channel, VoiceChannel
231+
):
230232
return await interaction.followup.send(
231233
embed=EmbedX.error(
232234
"This command can only be used in text channels."

0 commit comments

Comments
 (0)