ListenOrElse
ListenOrElse
DIAdiscord.js - Imagine an app
Created by ListenOrElse on 10/17/2024 in #djs-voice
How do you get a voice channel's user list?
Hi, I'm building a bot that: can join a voice channel on slash command and: start recording the list of users that are in this channel, repeat every one second afterwhich, output the list of users to a database in the following way: for(each user){ if(user is not already in database:) add user to database and set (number of seconds user is in channel with bot) to 1 else increment (number of seconds user is in channel with bot) in database } Right now, I'm having trouble with trying to get the "list of users in voice chat right now" data and I couldn't find documentation on the website for this. Does anyone have any ideas how I can do this?
3 replies