$muteUser
$muteUser
will mute or unmute a given user in a Voice Channel.
Usage
$muteUser[guildID;userID;mute?;reason?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
guildID | number | The guild ID of where the user is located. | true |
userID | number | The user ID of the user to mute/unmute. | true |
mute? | boolean | Mute or unmute the user. 1. true (mute / default) 2. false (unmute) | false |
reason? | string | Reason that will be displayed in the guild’s audit logs. | false |
Example(s)
This will server mute yourself (must be in a voice channel):
1client.command({2 name: "muteUser",3 code: `4 $muteUser[$guildID;$authorID;true]5 `6});