Moderation
disconnectMember
$disconnectMember
Disconnects a member from their voice channel. 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
$disconnectMember[userID]
Parameters
| Parameter | Description |
|---|---|
userID |
Required. The member’s ID (digits only). |
Return Value
- Type: String
- Always empty.
Behavior
- The member must be connected to a voice channel.
- The bot needs Move Members in the guild.
Examples
$disconnectMember[$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.