'Count the number of people in a voice channel based on the roles they have
I would like to know how to make my BOT Discord count the number of people in a voice channel and who have a certain role and display it with for example the command !vocal, in the image for example, Versus is a role and next to it we see the number of people with this role who are in the vocal at a time T, I don't know where to start to do this for about forty roles, can you help me Please ? (in python) Image for an example of what i'm trying to do
Solution 1:[1]
Here are all the things that you need to do. (discord.py) Getting a list of all of the members in a specific voice channel This link tells you how to get all the users from a voice channel then after you do this you would need to create a list and put all the users in that list. Then after that, you would need to put that list in an embed.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | ShadowGunn |