Class MessageContextInteractionEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.interaction.GenericInteractionCreateEvent
net.dv8tion.jda.api.events.interaction.command.GenericCommandInteractionEvent
net.dv8tion.jda.api.events.interaction.command.GenericContextInteractionEvent<Message>
net.dv8tion.jda.api.events.interaction.command.MessageContextInteractionEvent
- All Implemented Interfaces:
ISnowflake,GenericEvent,IDeferrableCallback,IModalCallback,IPremiumRequiredReplyCallback,IReplyCallback,CommandInteraction,CommandInteractionPayload,ContextInteraction<Message>,MessageContextInteraction,Interaction
public class MessageContextInteractionEvent
extends GenericContextInteractionEvent<Message>
implements MessageContextInteraction
Indicates that a message context command was used.
Requirements
To receive these events, you must unset the Interactions Endpoint URL in your application dashboard.
You can simply remove the URL for this endpoint in your settings at the Discord Developers Portal.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.interactions.commands.context.ContextInteraction
ContextInteraction.ContextTarget -
Constructor Summary
ConstructorsConstructorDescriptionMessageContextInteractionEvent(JDA api, long responseNumber, MessageContextInteraction interaction) -
Method Summary
Modifier and TypeMethodDescriptionThe channel this interaction happened in.TheInteractioninstance.Methods inherited from class net.dv8tion.jda.api.events.interaction.command.GenericContextInteractionEvent
getTarget, getTargetTypeMethods inherited from class net.dv8tion.jda.api.events.interaction.command.GenericCommandInteractionEvent
deferReply, getCommandIdLong, getCommandType, getHook, getName, getOptions, getSubcommandGroup, getSubcommandName, isGuildCommand, replyModal, replyWithPremiumRequiredMethods inherited from class net.dv8tion.jda.api.events.interaction.GenericInteractionCreateEvent
getChannelIdLong, getEntitlements, getGuild, getGuildLocale, getIdLong, getMember, getToken, getTypeRaw, getUser, getUserLocale, isAcknowledgedMethods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.dv8tion.jda.api.interactions.commands.CommandInteractionPayload
getCommandId, getCommandIdLong, getCommandString, getCommandType, getFullCommandName, getName, getOption, getOption, getOption, getOption, getOptions, getOptionsByName, getOptionsByType, getSubcommandGroup, getSubcommandName, isGlobalCommand, isGuildCommandMethods inherited from interface net.dv8tion.jda.api.interactions.commands.context.ContextInteraction
getTargetMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IDeferrableCallback
getHookMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IModalCallback
replyModalMethods inherited from interface net.dv8tion.jda.api.interactions.Interaction
getChannelId, getChannelIdLong, getChannelType, getEntitlements, getGuild, getGuildLocale, getJDA, getMember, getMessageChannel, getToken, getType, getTypeRaw, getUser, getUserLocale, isAcknowledged, isFromGuildMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IPremiumRequiredReplyCallback
replyWithPremiumRequiredMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IReplyCallback
deferReply, deferReply, reply, reply, replyComponents, replyComponents, replyEmbeds, replyEmbeds, replyFiles, replyFiles, replyFormat, replyPollMethods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreatedMethods inherited from interface net.dv8tion.jda.api.interactions.commands.context.MessageContextInteraction
getGuildChannel, getTargetType
-
Constructor Details
-
MessageContextInteractionEvent
public MessageContextInteractionEvent(@Nonnull JDA api, long responseNumber, @Nonnull MessageContextInteraction interaction)
-
-
Method Details
-
getInteraction
Description copied from class:GenericInteractionCreateEventTheInteractioninstance.
Note that this event is a delegate which implements the same interface.- Overrides:
getInteractionin classGenericContextInteractionEvent<Message>- Returns:
- The
Interaction
-
getChannel
Description copied from interface:InteractionThe channel this interaction happened in.- Specified by:
getChannelin interfaceInteraction- Specified by:
getChannelin interfaceMessageContextInteraction- Overrides:
getChannelin classGenericInteractionCreateEvent- Returns:
- The channel or null if the channel is not provided
-