Skip to content

Commit 8a38a59

Browse files
committed
Fixed a bug
1 parent f7e4568 commit 8a38a59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cogs/basic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ async def connect(self, ctx: commands.Context, channel: discord.VoiceChannel = N
123123
@app_commands.describe(query="Input a query or a searchable link.")
124124
@app_commands.autocomplete(query=play_autocomplete)
125125
@commands.dynamic_cooldown(cooldown_check, commands.BucketType.guild)
126-
async def play(self, ctx: commands.Context, query: str) -> None:
126+
async def play(self, ctx: commands.Context, *, query: str) -> None:
127127
"Loads your input and added it to the queue."
128128
player: voicelink.Player = ctx.guild.voice_client
129129
if not player:
@@ -250,7 +250,7 @@ async def search(self, ctx: commands.Context, *, query: str, platform: str = "Yo
250250
@commands.hybrid_command(name="playtop", aliases=get_aliases("playtop"))
251251
@app_commands.describe(query="Input a query or a searchable link.")
252252
@commands.dynamic_cooldown(cooldown_check, commands.BucketType.guild)
253-
async def playtop(self, ctx: commands.Context, query: str):
253+
async def playtop(self, ctx: commands.Context, *, query: str):
254254
"Adds a song with the given url or query on the top of the queue."
255255
player: voicelink.Player = ctx.guild.voice_client
256256
if not player:

0 commit comments

Comments
 (0)