Skip to content

$disconnectUser

$disconnectUser disconnects the user from the voice or stage channel.

Usage

$disconnectUser[userID;guildID;reason?]

Parameters

FieldTypeDescriptionRequired
userIDnumberThe user ID.true
guildIDnumberThe guild ID.true
reason?stringThe 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):

1
client.command({
2
name: "disconnectUser",
3
code: `$disconnectUser[$mentioned[1];$guildID]`
4
});