CommandParsingConfiguration

@Serializable
data class CommandParsingConfiguration(var commandDelimiter: Char = '?', var parametersDelimiter: Char = '&', var parameterValueDelimiter: Char = '=', var restrictSpacesInCommands: Boolean = false, var useIdentifierInGroupCommands: Boolean = false)

Class for configuration of command parsing parameters

Constructors

Link copied to clipboard
constructor(commandDelimiter: Char = '?', parametersDelimiter: Char = '&', parameterValueDelimiter: Char = '=', restrictSpacesInCommands: Boolean = false, useIdentifierInGroupCommands: Boolean = false)

Properties

Link copied to clipboard

Separator between the command and parameters.

Link copied to clipboard

Separator between the parameters

Link copied to clipboard

Separator between key and value of parameter

Link copied to clipboard

If this flag is enabled, if there is a space in the command, parser will treat this as the end of the command and start parsing parameters

Link copied to clipboard

Use bot's identifier to match commands containing @, helpful in matching chat commands. By default, it's just omitted.