Fix bot command not working in music request channel

This commit is contained in:
Choco
2025-10-03 14:57:11 +08:00
parent 90c2f22496
commit 8c68686497

View File

@@ -88,6 +88,7 @@ class Vocard(commands.Bot):
if message.channel.id == request_channel.get("text_channel_id"):
ctx = await self.get_context(message)
try:
if not ctx.prefix:
cmd = self.get_command("play")
if message.content:
await cmd(ctx, query=message.content)
@@ -100,7 +101,7 @@ class Vocard(commands.Bot):
await dispatch_message(ctx, str(e), ephemeral=True)
finally:
return await message.delete()
await message.delete()
await self.process_commands(message)