discord self-bot join voicec channel code example
Example: discordpy how to make the bot join voice channel
@client.command()
async def join(ctx):
channel = ctx.author.voice.channel
await channel.connect()
@client.command()
async def leave(ctx):
await ctx.voice_client.disconnect()