$voiceInfo
A `Compact Function` that returns information about a users voice connection status in a voice channel with `4` options to choose from.

FUNCTION USAGE

  • $voiceInfo[guildID;userID;option]

Properties:

userID - The ID of a user to get voice info from. guildID - The ID of a guild to get users voice info from. option - Define an option to get that data from a user.

Options:

  1. 1.
    stream
  2. 2.
    speak
  3. 3.
    mute
  4. 4.
    deaf
stream
speak
mute
deaf

Returns true if the user is streaming in a voice channel. Otherwise, the function returns false

Returns true if the user is speaking in a voice channel upon function execution. Otherwise, the function returns false

Returns true if the user is muted in a voice channel. Otherwise, the function returns false

Returns true if the user is deafened in a voice channel. Otherwise, the function returns false

Example 1: Will return true if the user is deafened in a voice channel.
1
bot.Command({
2
name: "info",
3
code: `
4
$voiceInfo[3324562876529387;deaf]
5
`
6
})
Copied!
Example 2: Will return true if the user is speaking in a voice channel.
1
bot.Command({
2
name: "info",
3
code: `
4
$voiceInfo[3324562876529387;speak]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link