-1
Hello! I’m starting to practice Python in addition to the videos classes I try to practice creating some bots for DISCORD and trying to understand the library that is used. But my code to add the bot to the channel:
@client.event
async def on_message(message):
if message.content.startswith('.conectar'):
canal = message.author.voice.voice_channel
await client.join_voice_channel(canal)
Always typing the . connect, it generates an error in the console (I know Discord.py has updated, but I’ve tried everything and do not understand the reason for errors in this part) I already tried to change client.join_voice_channel for Voicechannel.connect as it says in the documentation, but then it generates another error, something to do with "Member". Who can help me I will be extremely grateful!