Functionalities
Functions
Data
Other
$voiceID
Returns the voice channel ID of the defined user. Returns `undefined` if the user is not in a voice channel.

FUNCTION USAGE

  • $voiceID
  • $voiceID[]
  • $voiceID[userID]
  • $voiceID[userID;guildID]

Properties:

[] - Leave brackets empty to define the command author. Same as no brackets. userID - Define the user with their ID. guildID - Define the guild with its ID.
Returns undefined if the user is not in a voice channel.

Example 1: The voice channel ID of the command author.

bot.Command({
name: "vc",
code: `
The id of the channel you are in is: $voiceID[$authorID]
`
})

Example 2: The voice channel ID of the command author.

bot.Command({
name: "vc",
code: `
The id of the channel you are in is: $voiceID[]
`
})

Example 3: The voice channel ID of the command author.

bot.Command({
name: "vc",
code: `
The id of the channel you are in is: $voiceID
`
})

Example 2: The voice channel ID of the user.

bot.Command({
name: "vc",
code: `
$voiceID[$findUser[$message[]]]
`
})
Copy link