#Voice Call Detect

14 messages · Page 1 of 1 (latest)

light warren
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

distant ferry
#

You can check if <interaction>.member.voice.channel.id is equal to the ID of the channel you want to check for

kindred jacinth
#

should use voice.channelId instead, as channel will be null if the member is not connected

naive vineBOT
worthy steeple
quaint coral
#

Users doesn't has channel so not

#

Voice state has

worthy steeple
#

I want check if the user is connected to this channel to execute with /slash command

quaint coral
#

Members has voice state in <GuildMember>.voice

quaint coral
naive vineBOT
#

Despite sounding similar there is a distinct difference between users and members in Discord:
User: global Discord user data (global avatar, username, tag, id)
GuildMember: user data associated to a guild (guild, nickname, roles, voice, guild avatar, etc.)
• Conversion: User ➞ GuildMember | GuildMember ➞ User

worthy steeple
#

so i have to work with member instead to member to make that work?

#

like interaction.member.voice?

quaint coral
#

Yes