Skip to content

[Voice] How to get the number of users in a voice channel? v3 #314

Answered by diamondburned
fiwippi asked this question in Help
Discussion options

You must be logged in to vote

That would be state.VoiceStates(discord.GuildID), which would give you a slice of discord.VoiceState instance that you can use to check if anyone's in any voice channel.

Note that VoiceStates is part of store.VoiceStateStore:

- state.State
  - session.Session
    - api.Client
    - gateway.Gateway
  - store.Cabinet
    - store.VoiceStateStore <--

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fiwippi
Comment options

Answer selected by fiwippi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants