R
R
reverend-dikiy2021-07-08 16:10:15
Bots
reverend-dikiy, 2021-07-08 16:10:15

How to get the number of users in a Discord py voice channel?

How to get the number of users in a voice channel, number

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2021-07-08
@revrend-dikiy

the discord.VoiceChannel object has a members attribute that returns a list of members currently in the channel, use the len function
voice_members_count = len(channel.members)

M
mezigar, 2021-07-08
@mezigar

#find raiding
        voice_channel = discord.utils.get(ctx.message.server.channels, id = '440014722587426816')

        #finds the members
        members = voice_channel.voice_members

        memids = []

        for member in members:
            memids.append(member.id)

        print(memids)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question