Added autocomplete in playtop
This commit is contained in:
@@ -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."
|
||||
|
||||
2
main.py
2
main.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user