id
.@bot.event
async def on_voice_state_update(member, before, after):
clients = [969338428647912064, 424184503818564866, 424184503818564866]
role = bot.get_role(240688302893711904)
if not before.channel and after.channel:
if member.id in clients:
await member.add_roles(role)
elif before.channel and not after.channel:
await member.remove_roles(role)
from discord.ext import commands
bot = commands.Bot(command_prefix='$')
@bot.command()
async def test(ctx):
pass
@bot.command()
async def test1(ctx):
pass