Fix bot command not working in music request channel
This commit is contained in:
3
main.py
3
main.py
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user