From 8a38a5977a04308b0410cb14b1510a42466c2b9b Mon Sep 17 00:00:00 2001 From: Choco <94597336+ChocoMeow@users.noreply.github.com> Date: Tue, 27 Feb 2024 17:17:33 +0800 Subject: [PATCH] Fixed a bug --- cogs/basic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/basic.py b/cogs/basic.py index d21d538..aacddd0 100644 --- a/cogs/basic.py +++ b/cogs/basic.py @@ -123,7 +123,7 @@ class Basic(commands.Cog): @app_commands.describe(query="Input a query or a searchable link.") @app_commands.autocomplete(query=play_autocomplete) @commands.dynamic_cooldown(cooldown_check, commands.BucketType.guild) - async def play(self, ctx: commands.Context, query: str) -> None: + async def play(self, ctx: commands.Context, *, query: str) -> None: "Loads your input and added it to the queue." player: voicelink.Player = ctx.guild.voice_client if not player: @@ -250,7 +250,7 @@ class Basic(commands.Cog): @commands.hybrid_command(name="playtop", aliases=get_aliases("playtop")) @app_commands.describe(query="Input a query or a searchable link.") @commands.dynamic_cooldown(cooldown_check, commands.BucketType.guild) - async def playtop(self, ctx: commands.Context, query: str): + async def playtop(self, ctx: commands.Context, *, query: str): "Adds a song with the given url or query on the top of the queue." player: voicelink.Player = ctx.guild.voice_client if not player: