$voice
A `Compact Function` pertaining to voice channels with `21` options to choose from.

FUNCTION USAGE

  • $voice[id;option]

Properties:

id - The ID of the voice channel to return the data from. option - Define the property by its name.

OPTIONS

OPTION
ABOUT IT
bitrate
The bitrate of the voice channel in Kbps
created
The date and time the voice channel was created.
guildid
The ID of the guild the voice channel belongs to.
guildname
The name of the guild the voice channel belong to.
id
The voice channel ID
isdeletable
Returns true if the voice channel can be deleted by the command user with the bot. Otherwise the function returns false.
isdeleted
Returns true if the voice channel does not exist or has been deleted. Otherwise the function will return false.
isfull
Returns true if the voice channel is at full user capacity. Otherwise the function will return false.
isjoinable
Returns true if the command user can join the voice channel. Otherwise the function will return false.
ismanageable
Returns true if the voice channel can be managed/edited by the command user with the bot. Otherwise the function will return false.
isspeakable
Returns true if the command user is allowed to speak in the voice channel. Otherwise the function will return false.
isviewable
Returns true if the voice channel can be viewed or seen by the command user.
name
Returns the name of the voice channel.
parentid
Returns the category ID of where the voice channel is located.
parentname
Returns the category name of where the voice channel is located.
position
Returns the position of the voice channel within a category.
rawposition
Returns the raw position of the voice channel within the entire channel list.
timestamp
Returns how long ago the voice channel was created.
topic
Returns the voice channel topic.
type
Returns the type of voice channel.
userlimit
Returns the limit of users allowed to be connected to the voice channel. 0 is returned for infinite amount of users.

Example 1: Output will be the bitrate of the voice channel.

1
bot.Command({
2
name: "test",
3
code: `
4
$voice[27356925693816594;bitrate]
5
`
6
})
Copied!

Example 2: Output will be variable to the command author's input.

1
bot.Command({
2
name: "test",
3
code: `
4
$voice[$message[1];$message[2]]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link