ApplicationCommands

class ApplicationCommands(config: ApplicationCommands.Config, restClient: RestClient, applicationId: Long)

Plugin for using "slash" commands

Constructors

ApplicationCommands
Link copied to clipboard
fun ApplicationCommands(config: ApplicationCommands.Config, restClient: RestClient, applicationId: Long)

Types

Companion
Link copied to clipboard
Config
Link copied to clipboard
class Config

Functions

updateCommands
Link copied to clipboard
suspend fun updateCommands(guilds: Flow<Guild>)

Properties

commandMap
Link copied to clipboard

Lookup map for the command object given it's unique ID.

commands
Link copied to clipboard

Commands that have been registered with this feature.

globalCommands
Link copied to clipboard

All global commands.

guildCommands
Link copied to clipboard
val guildCommands: List<GuildApplicationCommand<*>>

All guild commands.

Sources

jvm source
Link copied to clipboard