Interface UserContextInteraction
- All Superinterfaces:
CommandInteraction
,CommandInteractionPayload
,ContextInteraction<User>
,IDeferrableCallback
,IModalCallback
,Interaction
,IPremiumRequiredReplyCallback
,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, getCommandString, getCommandType, getFullCommandName, getName, getOption, getOption, getOption, getOption, getOptions, getOptionsByName, getOptionsByType, getSubcommandGroup, getSubcommandName, isGlobalCommand, isGuildCommand
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.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
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.
-