Interface ContextInteraction<T>
- Type Parameters:
T
- The target type of this context interaction
- All Superinterfaces:
CommandInteraction
,CommandInteractionPayload
,IDeferrableCallback
,Interaction
,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, getCommandPath, getCommandString, getCommandType, getName, getOption, getOptions, getOptionsByName, getOptionsByType, getSubcommandGroup, getSubcommandName
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IDeferrableCallback
getHook
Methods inherited from interface net.dv8tion.jda.api.interactions.Interaction
getChannel, getChannelType, getGuild, getGuildChannel, getGuildLocale, getJDA, getMember, getMessageChannel, getNewsChannel, getPrivateChannel, getTextChannel, getThreadChannel, getToken, getType, getTypeRaw, getUser, getUserLocale, getVoiceChannel, isAcknowledged, isFromGuild
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IReplyCallback
deferReply, deferReply, reply, reply, replyEmbeds, replyEmbeds, replyFile, replyFile, replyFile, replyFile, replyFormat
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
-