CommandsKeeper

class CommandsKeeper(preset: List<BotCommandFullInfo> = emptyList())

In memory commands keeper. Contains all the registered commands inside and can be useful in case you wish to addCommand or removeCommand

Constructors

Link copied to clipboard
fun CommandsKeeper(preset: List<BotCommandFullInfo> = emptyList())

Functions

Link copied to clipboard
suspend fun addCommand(command: BotCommand)
suspend fun addCommand(languageCode: IetfLanguageCode, command: BotCommand)
suspend fun addCommand(scope: CommandsKeeperKey, command: BotCommand)
suspend fun addCommand(scope: BotCommandScope, command: BotCommand)
suspend fun addCommand(languageCode: String, command: BotCommand)
suspend fun addCommand(    scope: BotCommandScope,     languageCode: IetfLanguageCode,     command: BotCommand)
suspend fun addCommand(    scope: BotCommandScope,     languageCode: String,     command: BotCommand)
Link copied to clipboard
suspend fun removeCommand(command: BotCommand)
suspend fun removeCommand(languageCode: IetfLanguageCode, command: BotCommand)
suspend fun removeCommand(scope: CommandsKeeperKey, command: BotCommand)
suspend fun removeCommand(scope: BotCommandScope, command: BotCommand)
suspend fun removeCommand(languageCode: String, command: BotCommand)
suspend fun removeCommand(    scope: BotCommandScope,     languageCode: IetfLanguageCode,     command: BotCommand)
suspend fun removeCommand(    scope: BotCommandScope,     languageCode: String,     command: BotCommand)

Sources

Link copied to clipboard