Moderation
serverMute
$serverMute
Server-mutes or unmutes a member in voice. This function is a Bot Creator extension: it does not exist in the official BDFD wiki. It runs the same Discord logic as the matching block.
Syntax
$serverMute[userID;mute]
Parameters
| Parameter | Description |
|---|---|
userID |
Required. The member’s ID (digits only). |
mute |
true (default) to mute, false to unmute. |
Return Value
- Type: String
- Always empty.
Behavior
- Not the same as
$mute(a timeout): this one only affects voice. - The bot needs Mute Members in the guild.
Examples
$serverMute[$mentioned[1]]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.