Skip to content Skip to sidebar Skip to footer

Error On Music Discord Bot In Python 'nonetype' Object Has No Attribute 'create_ytdl_player'

When ever i run this code: @client.command(pass_context=True) async def ranjaplay(ctx, url): server = ctx.message.server voice_client = client.voice_client_in(server) p

Solution 1:

the error tells us that client is None. why? let's look at the docs:

voice_client_in(server)

Returns the voice client associated with a server. If no voice client is found then None is returned.

Checking the cocs briefly, i assume you have to create the voiceclient first, if it doesn't exist yet. this can be done with Client.join_voice_channel.

Post a Comment for "Error On Music Discord Bot In Python 'nonetype' Object Has No Attribute 'create_ytdl_player'"