#Voice Call Detect
14 messages · Page 1 of 1 (latest)
You can check if <interaction>.member.voice.channel.id is equal to the ID of the channel you want to check for
should use voice.channelId instead, as channel will be null if the member is not connected
Documentation suggestion for @worthy steeple:
VoiceState#channelId
The [VoiceChannel](<https://discord.js.org/#/docs/discord.js/main/class/VoiceChannel>) or [StageChannel](<https://discord.js.org/#/docs/discord.js/main/class/StageChannel>) id the member is in
if(interaction.user.channelId != '1027698229493649448') this have to work right?
I want check if the user is connected to this channel to execute with /slash command
Members has voice state in <GuildMember>.voice
Voice channel is a guild channel so users can't connect to it, only members
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
so i have to work with member instead to member to make that work?
like interaction.member.voice?
Yes