Iron℠
Iron℠
DIAdiscord.js - Imagine an app
Created by Iron℠ on 9/4/2023 in #djs-questions
Send message to channel using channel ID
4 replies
DIAdiscord.js - Imagine an app
Created by Iron℠ on 5/10/2023 in #djs-questions
Get list of users (usernames or user IDs preferably) in a voice channel to loop through
Hello. I am trying to get a list of the users that are in a specific voice channel. I went ahead to add the GuildVoiceStates for Intents and try to pull the user names using the command below.
const voiceState = message.guild.voiceStates.cache.get(message.user.id);

console.log(voiceState.guild.members);
const voiceState = message.guild.voiceStates.cache.get(message.user.id);

console.log(voiceState.guild.members);
Whenever I try the command above, it would just give me the data about voiceState and not specifically information about the members. If anyone can help me, I would greatly appreciate it. [email protected] node v18.16.0
8 replies