Command Trigger
Functions
Link copied to clipboard
Sets the aliases for the command.
Link copied to clipboard
fun setCommandName(commandName: String, overrideExisting: Boolean = false): CommandTrigger
Content copied to clipboard
Sets the command name. Example: setCommandName("test") would result in the command being /test
Link copied to clipboard
fun setName(commandName: String, overrideExisting: Boolean = false): CommandTrigger
Content copied to clipboard
Alias for setCommandName
Link copied to clipboard
Sets the tab completion options for the command. This method must be used before setting the command name, otherwise, the tab completions will not be set.
fun setTabCompletions(callback: (Array<out String>) -> MutableList<String>): CommandTrigger
Content copied to clipboard
This sets the possible tab completions for the command. This method must be used before setting the command name, otherwise, the tab completions will not be set.