DEV Community

BeyGame Officiel FR
BeyGame Officiel FR

Posted on

2 1

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()

Top comments (0)

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay