Functionalities
Other
Powered By GitBook
$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.

1
bot.Command({
2
name: "vc",
3
code: `
4
The id of the channel you are in is: $voiceID[$authorID]
5
`
6
})
Copied!

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

1
bot.Command({
2
name: "vc",
3
code: `
4
The id of the channel you are in is: $voiceID[]
5
`
6
})
Copied!

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

1
bot.Command({
2
name: "vc",
3
code: `
4
The id of the channel you are in is: $voiceID
5
`
6
})
Copied!

Example 2: The voice channel ID of the user.

1
bot.Command({
2
name: "vc",
3
code: `
4
$voiceID[$findUser[$message[]]]
5
`
6
})
Copied!
Last modified 3mo ago
Copy link
Contents
Properties: