$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:

bot.Command({
name: "ban",
code: `
$ban[$mentioned[1]]
$onlyAdmin[Sorry but only admins can ban people]
`
})
Copy link