(discord.py) Getting a list of all of the members in a specific voice channel

If you know the id of the channel you can do it this way. Works for me 😀

channel = client.get_channel(1234567890) #gets the channel you want to get the list from

members = channel.members #finds members connected to the channel

memids = [] #(list)
for member in members:
    memids.append(member.id)

print(memids) #print info

Leave a Comment