Discord bot on python

Viewed 40

discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: module 'search_link' has no attribute 'link'. Please help with that

@client.command()
async def play(ctx, url1="", url2="", url3="", url4="", url5="", url6=""):
    YDL_OPTIONS = {'format': 'bestaudio', 'noplaylist': 'True'}
    global ctx_queue, embed_queue, list_of_songs

    url = url1 + url2 + url3 + url4 + url5 + url6
    print(url)

    if not ctx.guild.voice_client in client.voice_clients:
        try:
            channel = ctx.author.voice.channel
            await channel.connect()
        except:
            await ctx.channel.send("Ты не в войсе")
            return

    if validators.url(url) != 1:
        url = search_link.link(url)


0 Answers
Related