Interface MessageContextInteraction
- All Superinterfaces:
CommandInteraction, CommandInteractionPayload, ContextInteraction<Message>, IDeferrableCallback, IModalCallback, Interaction, IReplyCallback, ISnowflake
- All Known Implementing Classes:
MessageContextInteractionEvent
Interaction with a message context menu command
-
Nested Class Summary
Nested classes/interfaces inherited from interface ContextInteraction
ContextInteraction.ContextTarget -
Method Summary
Modifier and TypeMethodDescriptionThe channel this interaction happened in.default GuildMessageChannelUnionTheGuildChannelthis interaction happened in.default ContextInteraction.ContextTargetThe target type of this context interactionMethods inherited from interface CommandInteractionPayload
getCommandId, getCommandIdLong, getCommandString, getCommandType, getFullCommandName, getName, getOption, getOption, getOption, getOption, getOptions, getOptionsByName, getOptionsByType, getSubcommandGroup, getSubcommandName, isGlobalCommand, isGuildCommandMethods inherited from interface ContextInteraction
getTargetMethods inherited from interface IDeferrableCallback
getHookMethods inherited from interface IModalCallback
replyModalMethods inherited from interface Interaction
getChannelId, getChannelIdLong, getChannelType, getContext, getEntitlements, getGuild, getGuildLocale, getIntegrationOwners, getJDA, getMember, getMessageChannel, getToken, getType, getTypeRaw, getUser, getUserLocale, isAcknowledged, isFromAttachedGuild, isFromGuildMethods inherited from interface IReplyCallback
deferReply, deferReply, reply, reply, replyComponents, replyComponents, replyComponents, replyEmbeds, replyEmbeds, replyFiles, replyFiles, replyFormat, replyPollMethods inherited from interface ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
getTargetType
Description copied from interface:ContextInteractionThe target type of this context interaction- Specified by:
getTargetTypein interfaceContextInteraction<Message>- Returns:
- The context target type
-
getChannel
Description copied from interface:InteractionThe channel this interaction happened in.- Specified by:
getChannelin interfaceInteraction- Returns:
- The channel or null if the channel is not provided
-
getGuildChannel
Description copied from interface:InteractionTheGuildChannelthis interaction happened in.
IfInteraction.getChannelType()is not a guild type, this throwsIllegalStateException!- Specified by:
getGuildChannelin interfaceInteraction- Returns:
- The
GuildChannel
-