Interface UserContextInteraction
- All Superinterfaces:
CommandInteraction
,CommandInteractionPayload
,ContextInteraction<User>
,IDeferrableCallback
,Interaction
,IReplyCallback
,ISnowflake
- All Known Implementing Classes:
UserContextInteractionEvent
Interaction with a user context menu command
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.interactions.commands.context.ContextInteraction
ContextInteraction.ContextTarget
-
Method Summary
Modifier and TypeMethodDescriptionIf this context menu command was used in aGuild
, this returns the member instance for the target user.default ContextInteraction.ContextTarget
The 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.commands.context.ContextInteraction
getTarget
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
Description copied from interface:ContextInteraction
The target type of this context interaction- Specified by:
getTargetType
in interfaceContextInteraction<User>
- Returns:
- The context target type
-
getTargetMember
If this context menu command was used in aGuild
, this returns the member instance for the target user.- Returns:
- The target member instance, or null if this was not in a guild.
-