Class UnsafeMessageCommandContext
-
- 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 UnsafeMessageCommandContext<M extends ModalForm> extends MessageCommandContext<UnsafeMessageCommandContext<M>, M> implements UnsafeInteractionContext
Command context for an unsafe message command.
-
-
Field Summary
Fields Modifier and Type Field Description private final MessageCommandInteractionCreateEventeventprivate final MessageCommand<UnsafeMessageCommandContext<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<Message>targetMessagesprivate final TranslationsProvidertranslationsProviderprivate UserBehavioruser
-
Constructor Summary
Constructors Constructor Description UnsafeMessageCommandContext(MessageCommandInteractionCreateEvent event, MessageCommand<UnsafeMessageCommandContext<M>, M> command, MessageInteractionResponseBehavior interactionResponse, Map<String, Object> cache)
-
Method Summary
Modifier and Type Method Description MessageCommandInteractionCreateEventgetEvent()Original interaction event object, for manual acks. MessageCommand<UnsafeMessageCommandContext<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.message.MessageCommandContext
getTargetMessages -
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
MessageCommandInteractionCreateEvent getEvent()
Original interaction event object, for manual acks.
-
getCommand
MessageCommand<UnsafeMessageCommandContext<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.
-
-
-
-