DEV Community

BeyGame Officiel FR
BeyGame Officiel FR

Posted on

 

Discord bot Python

It does not work I think I am out of date, please help me

Error : Command raised an exception: AttributeError: 'VoiceClient' object has no attribute 'create_ytdl_player'

My code:



@bot.command(pass_context=True)
async def play(ctx, url):
    author = ctx.message.author
    channel = author.voice.channel
    vc = await channel.connect()
    player = await vc.create_ytdl_player(url)
    player.start()

Latest comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.