@client.event
async def on_voice_state_update(member, before, after):
channel = client.get_channel(908270672290132002)
members = channel.members
memids = []
category = client.get_channel(908270672290132000)
for member in members:
memids.append(member.id)
count = len(memids)
await category.edit(name = str(count))
@client.event
async def on_voice_state_update(member, before, after):
members_count = len(client.get_channel(908270672290132002).members)
client.get_channel(908270672290132000).edit(name = str(members_count))