BotCommands
3.0.0-beta.7
      Target filter
Search in API
Skip to content
    BotCommands
BotCommands-core/io.github.freya022.botcommands.api.commands.application.context.annotations/JDAMessageCommand/contexts

contexts

val contexts: Array<InteractionContextType>(source)

Represents where a command can be used.

Default, depending on scope:

  • Global : GlobalApplicationCommandManager.Defaults.contexts

  • Guild : GuildApplicationCommandManager.Defaults.contexts

This will be forced to InteractionContextType.GUILD if BApplicationConfig.forceGuildCommands is enabled.

See also

InteractionContextType
TopLevelApplicationCommandBuilder.contexts

DSL equivalent

Generated by Dokka
© 2025 Copyright