$onlyForUsernames
Command will only execute if the command author does not have one of the usernames defined in the function. Otherwise, the function returns the error message.

FUNCTION USAGE

  • $onlyForUsernames[name;error]
  • $onlyForUsernames[name;name;etc..;error]

Properties:

name - The username. Can supply more than one separated by semicolons. error - The error message to send to the channel if the command author does not have one of the usernames defined in the function.

Example:

1
bot.Command({
2
name: "test",
3
code: `
4
Pong!
5
$onlyForUsernames[Speshul;Ricky;Only usernames with Speshul and Ricky can use this command!]
6
`
7
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: