setCommandName

fun setCommandName(commandName: String, overrideExisting: Boolean = false): CommandTrigger

Sets the command name. Example: setCommandName("test") would result in the command being /test

Return

the trigger for additional modification

Parameters

commandName

The command name

overrideExisting

Whether existing commands with the same name should be overridden

Sources

Link copied to clipboard