$disconnectUser
$disconnectUser
disconnects the user from the voice or stage channel.
Usage
$disconnectUser[userID;guildID;reason?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
userID | number | The user ID. | true |
guildID | number | The guild ID. | true |
reason? | string | The reason that will be displayed in the guild’s audit logs. | false |
Example(s)
This will disconnect the mentioned user from the current channel (if its voice or stage channel):
1client.command({2 name: "disconnectUser",3 code: `$disconnectUser[$mentioned[1];$guildID]`4});