Class UnsafeUserCommandContext
-
- 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 UnsafeUserCommandContext<M extends ModalForm> extends UserCommandContext<UnsafeUserCommandContext<M>, M> implements UnsafeInteractionContext
Command context for an unsafe user command.
-
-
Field Summary
Fields Modifier and Type Field Description private final UserCommandInteractionCreateEventeventprivate final UserCommand<UnsafeUserCommandContext<M>, M>commandprivate MessageInteractionResponseBehaviorinteractionResponseprivate final PermissionsappPermissionsprivate final ExtensibleBotBuilderbotSettingsprivate final Stringbundleprivate final Map<String, Object>cacheprivate MessageChannelBehaviorchannelprivate final StringcommandNameprivate final EventeventObjprivate final ApplicationCommand<?>genericCommandprivate final ApplicationCommandInteractionCreateEventgenericEventprivate GuildBehaviorguildprivate MemberBehaviormemberprivate LocaleresolvedLocaleprivate final SentryContextsentryprivate final Collection<User>targetUsersprivate final TranslationsProvidertranslationsProviderprivate UserBehavioruser
-
Constructor Summary
Constructors Constructor Description UnsafeUserCommandContext(UserCommandInteractionCreateEvent event, UserCommand<UnsafeUserCommandContext<M>, M> command, MessageInteractionResponseBehavior interactionResponse, Map<String, Object> cache)
-
Method Summary
Modifier and Type Method Description UserCommandInteractionCreateEventgetEvent()Original interaction event object, for manual acks. UserCommand<UnsafeUserCommandContext<M>, M>getCommand()MessageInteractionResponseBehaviorgetInteractionResponse()Response created by acknowledging the interaction. UnitsetInteractionResponse(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.CommandContext
getBundle, getCache, getCommandName, getEventObj, getLocale, getResolvedLocale, getSentry, getTranslationsProvider, setResolvedLocale, translate, translate -
Methods inherited from class com.kotlindiscord.kord.extensions.commands.application.user.UserCommandContext
getTargetUsers -
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
-
-
Method Detail
-
getEvent
UserCommandInteractionCreateEvent getEvent()
Original interaction event object, for manual acks.
-
getCommand
UserCommand<UnsafeUserCommandContext<M>, M> getCommand()
-
getInteractionResponse
MessageInteractionResponseBehavior getInteractionResponse()
Response created by acknowledging the interaction. Generic.
-
setInteractionResponse
Unit setInteractionResponse(MessageInteractionResponseBehavior interactionResponse)
Response created by acknowledging the interaction. Generic.
-
-
-
-