Added autocomplete in playtop

This commit is contained in:
Choco
2024-04-12 15:08:31 +08:00
parent 72cae9b7af
commit 2e5ad3aef4
2 changed files with 1 additions and 2 deletions

View File

@@ -249,6 +249,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.")
@app_commands.autocomplete(query=play_autocomplete)
@commands.dynamic_cooldown(cooldown_check, commands.BucketType.guild)
async def playtop(self, ctx: commands.Context, *, query: str):
"Adds a song with the given url or query on the top of the queue."