Answers for "how to log when user leaves voice channel discord.py"

8

python discord bot join voice channel

@bot.command()
async def join(ctx):
    channel = ctx.author.voice.channel
    await channel.connect()
@bot.command()
async def leave(ctx):
    await ctx.voice_client.disconnect()
Posted by: Guest on June-08-2020
0

discord py fetch channel by id

channel = discord.utils.get(ctx.guild.channels, name=given_name)
channel_id = channel.id
Posted by: Guest on January-29-2021

Code answers related to "how to log when user leaves voice channel discord.py"

Python Answers by Framework

Browse Popular Code Answers by Language