$onlyAdmin
Returns an error message if the command author does not carry the administrator permission.

FUNCTION USAGE

    $onlyAdmin
    $onlyAdmin[]
    $onlyAdmin[error]

Properties:

[] - Leave brackets empty for a silent error. Same as no brackets. error - Define an error message to send to the channel of command execution.

Example:

1
bot.Command({
2
name: "ban",
3
code: `
4
$ban[$mentioned[1]]
5
$onlyAdmin[Sorry but only admins can ban people]
6
`
7
})
Copied!
Last modified 3mo ago
Copy link
Contents
Properties: