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."

View File

@@ -1,7 +1,6 @@
import discord
import sys
import os
import traceback
import aiohttp
import update
import logging
@@ -10,7 +9,6 @@ import function as func
from discord.ext import commands
from web import IPCServer
from motor.motor_asyncio import AsyncIOMotorClient
from datetime import datetime
from logging.handlers import TimedRotatingFileHandler
from voicelink import VoicelinkException
from addons import Settings