Class UnsafeSlashCommandContext

  • All Implemented Interfaces:
    com.kotlindiscord.kord.extensions.koin.KordExKoinComponent , com.kotlindiscord.kord.extensions.modules.unsafe.types.UnsafeInteractionContext , com.kotlindiscord.kord.extensions.types.TranslatableContext , org.koin.core.component.KoinComponent

    
    public final class UnsafeSlashCommandContext<A extends Arguments, M extends ModalForm>
    extends SlashCommandContext<UnsafeSlashCommandContext<A, M>, A, M> implements UnsafeInteractionContext
                        

    Command context for an unsafe slash command.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      ChatInputCommandInteractionCreateEvent getEvent() Original interaction event object, for manual acks.
      UnsafeSlashCommand<A, M> getCommand()
      MessageInteractionResponseBehavior getInteractionResponse() Response created by acknowledging the interaction.
      Unit setInteractionResponse(MessageInteractionResponseBehavior interactionResponse) Response created by acknowledging the interaction.
      • Methods inherited from class com.kotlindiscord.kord.extensions.commands.application.ApplicationCommandContext

        getAppPermissions, getBotSettings, getChannel, getChannel, getGenericCommand, getGenericEvent, getGuild, getGuild, getMember, getMember, getUser, getUser, populate, setChannel, setGuild, setMember, setUser
      • Methods inherited from class com.kotlindiscord.kord.extensions.commands.application.slash.SlashCommandContext

        getArguments, populateArgs, setArguments
      • Methods inherited from class com.kotlindiscord.kord.extensions.commands.CommandContext

        getBundle, getCache, getCommandName, getEventObj, getLocale, getResolvedLocale, getSentry, getTranslationsProvider, setResolvedLocale, translate, translate
      • Methods inherited from class com.kotlindiscord.kord.extensions.koin.KordExKoinComponent

        getKoin
      • Methods inherited from class com.kotlindiscord.kord.extensions.types.TranslatableContext

        getTranslationProvider, translate, translate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnsafeSlashCommandContext

        UnsafeSlashCommandContext(ChatInputCommandInteractionCreateEvent event, UnsafeSlashCommand<A, M> command, MessageInteractionResponseBehavior interactionResponse, Map<String, Object> cache)
    • Method Detail

      • getEvent

         ChatInputCommandInteractionCreateEvent getEvent()

        Original interaction event object, for manual acks.

      • getInteractionResponse

         MessageInteractionResponseBehavior getInteractionResponse()

        Response created by acknowledging the interaction. Generic.

      • setInteractionResponse

         Unit setInteractionResponse(MessageInteractionResponseBehavior interactionResponse)

        Response created by acknowledging the interaction. Generic.