$banID[]

Bans a user using their ID.

Syntax

$banID[reason;(user ID)]

Parameters

  • reason (Type: String || Flag: Emptiable): The reason for this action, which will be saved in the audit-log.

    Use $getBanReason[] to get the ban reason.

  • user ID (Type: Snowflake || Flag: Vacantable): The user to ban. If empty, the ID will be taken from the last part of the author's message.

Example

$nomention
$onlyAdmin[You need the `admim` permission to use that command!]
$argsCheck[>1;Please provide a `user`. Syntax: `!ban (user) <reason>`]
$onlyIf[$findUser[$message[1];no]!=;Failed to find user!]
<@$findUser[$message;no]> was banned!
$banID[$replaceText[$message;$message[1];;1];$findUser[$message[1];no]]

exsmple

How $findUser[] works?