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
public interface ContextInteraction<T> extends CommandInteraction
Represents application comments which are invoked as context menu items in the client UI.- See Also:
getTarget()
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ContextInteraction.ContextTarget
The target type, of a context interaction.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getTarget()
The target entity of this context interactionContextInteraction.ContextTarget
getTargetType()
The target type of this context interaction-
Methods inherited from interface net.dv8tion.jda.api.interactions.commands.CommandInteractionPayload
getCommandId, getCommandIdLong, getCommandPath, getCommandString, getCommandType, getName, getOption, getOption, getOption, 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 Detail
-
getTargetType
@Nonnull ContextInteraction.ContextTarget getTargetType()
The target type of this context interaction- Returns:
- The context target type
-
-