Interface ContextInteraction<T>
- Type Parameters:
T
- The target type of this context interaction
- All Superinterfaces:
CommandInteraction
,CommandInteractionPayload
,IDeferrableCallback
,IModalCallback
,Interaction
,IPremiumRequiredReplyCallback
,IReplyCallback
,ISnowflake
- All Known Subinterfaces:
MessageContextInteraction
,UserContextInteraction
- All Known Implementing Classes:
GenericContextInteractionEvent
,MessageContextInteractionEvent
,UserContextInteractionEvent
Represents application comments which are invoked as context menu items in the client UI.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The target type, of a context interaction. -
Method Summary
Modifier and TypeMethodDescriptionThe target entity of this context interactionThe target type of this context interactionMethods 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, isGuildCommand
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IDeferrableCallback
getHook
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IModalCallback
replyModal
Methods inherited from interface net.dv8tion.jda.api.interactions.Interaction
getChannel, getChannelId, getChannelIdLong, getChannelType, getEntitlements, getGuild, getGuildChannel, getGuildLocale, getJDA, getMember, getMessageChannel, getToken, getType, getTypeRaw, getUser, getUserLocale, isAcknowledged, isFromGuild
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IPremiumRequiredReplyCallback
replyWithPremiumRequired
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IReplyCallback
deferReply, deferReply, reply, reply, replyComponents, replyComponents, replyEmbeds, replyEmbeds, replyFiles, replyFiles, replyFormat, replyPoll
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
getTargetType
The target type of this context interaction- Returns:
- The context target type
-
getTarget
The target entity of this context interaction- Returns:
- The target entity
-