Moderation
kickMention
$kickMention
Kicks the user mentioned in the message.
Syntax
$kickMention
$kickMention
The function $kickMention automatically kicks the user mentioned in the triggering message. This is a convenient shortcut that avoids the need to specify an ID. The bot must have the Kick Members permission.
Syntax
$kickMention
Parameters
No parameters. The function automatically detects the mentioned user.
Return Value
None. The mentioned user is kicked.
Examples
Simple kick
$kickMention
$sendMessage[Member kicked successfully!]
Kick with default reason
$kickMention
$sendMessage[<@$mentioned[1]> has been kicked for violating the rules.]
Notes
- The triggering message must contain a user mention.
- The bot must have the
Kick Memberspermission. - To kick a specific user by ID, use
$kick. - If no mention is present, the behavior may be undefined.