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
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe 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, isGuildCommandMethods 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
getChannel, getChannelId, getChannelIdLong, getChannelType, getEntitlements, getGuild, getGuildChannel, 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, 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
-