-
I want to keep track of members count of specific voice channel in my app without using session id. How can i achieve that? The problem is that in Voice Leave event data "channel id" is always nil. Doesn't Discord provide id of channel from which user left? |
Beta Was this translation helpful? Give feedback.
Answered by
topi314
May 12, 2024
Replies: 1 comment 1 reply
-
Discord always sends the current channel a user would join To see how many users are in a voice channel you'd either need to track all voice states which can be done by adding client, err := disgo.New(...,
bot.WithCacheConfigOpts(
cache.WithCaches(cache.FlagVoiceStates)
)
) Then you can just access all members in a voice channel via client.Caches().AudioChannelMembers(channel) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kvizyx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discord always sends the current channel a user would join
nil
means they left.To see how many users are in a voice channel you'd either need to track all voice states which can be done by adding
Then you can just access all members in a voice channel via