Skip to content

$muteUser

$muteUser will mute or unmute a given user in a Voice Channel.

Usage

$muteUser[guildID;userID;mute?;reason?]

Parameters

FieldTypeDescriptionRequired
guildIDnumberThe guild ID of where the user is located.true
userIDnumberThe user ID of the user to mute/unmute.true
mute?booleanMute or unmute the user.
1. true (mute / default)
2. false (unmute)
false
reason?stringReason that will be displayed in the guild’s audit logs.false

Example(s)

This will server mute yourself (must be in a voice channel):

1
client.command({
2
name: "muteUser",
3
code: `
4
$muteUser[$guildID;$authorID;true]
5
`
6
});