Class UserContextInteractionImpl
java.lang.Object
net.dv8tion.jda.internal.interactions.InteractionImpl
net.dv8tion.jda.internal.interactions.DeferrableInteractionImpl
net.dv8tion.jda.internal.interactions.command.CommandInteractionImpl
net.dv8tion.jda.internal.interactions.command.ContextInteractionImpl<User>
net.dv8tion.jda.internal.interactions.command.UserContextInteractionImpl
- All Implemented Interfaces:
ISnowflake
,IDeferrableCallback
,IModalCallback
,IReplyCallback
,CommandInteraction
,CommandInteractionPayload
,ContextInteraction<User>
,UserContextInteraction
,Interaction
,CommandInteractionPayloadMixin
public class UserContextInteractionImpl
extends ContextInteractionImpl<User>
implements UserContextInteraction
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.interactions.commands.context.ContextInteraction
ContextInteraction.ContextTarget
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf this context menu command was used in aGuild
, this returns the member instance for the target user.Methods inherited from class net.dv8tion.jda.internal.interactions.command.ContextInteractionImpl
getCommandPayload, getTarget
Methods inherited from class net.dv8tion.jda.internal.interactions.command.CommandInteractionImpl
deferReply, replyModal
Methods inherited from class net.dv8tion.jda.internal.interactions.DeferrableInteractionImpl
getHook, releaseHook
Methods inherited from class net.dv8tion.jda.internal.interactions.InteractionImpl
ack, getChannel, getChannelIdLong, getContext, getEntitlements, getGuild, getIdLong, getIntegrationOwners, getJDA, getMember, getToken, getTypeRaw, getUser, getUserLocale, isAcknowledged
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.interactions.commands.CommandInteractionPayload
getCommandId, getCommandString, getFullCommandName, getOption, getOption, getOption, getOption, getOptionsByName, getOptionsByType, isGlobalCommand
Methods inherited from interface net.dv8tion.jda.internal.interactions.command.CommandInteractionPayloadMixin
getCommandIdLong, getCommandType, getName, getOptions, getSubcommandGroup, getSubcommandName, 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, getContext, getEntitlements, getGuild, getGuildChannel, getGuildLocale, getIntegrationOwners, getJDA, getMember, getMessageChannel, getToken, getType, getTypeRaw, getUser, getUserLocale, isAcknowledged, isFromAttachedGuild, isFromGuild
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IReplyCallback
deferReply, deferReply, reply, reply, replyComponents, replyComponents, replyComponents, replyEmbeds, replyEmbeds, replyFiles, replyFiles, replyFormat, replyPoll
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
Methods inherited from interface net.dv8tion.jda.api.interactions.commands.context.UserContextInteraction
getTargetType
-
Constructor Details
-
UserContextInteractionImpl
-
-
Method Details
-
getTargetMember
Description copied from interface:UserContextInteraction
If this context menu command was used in aGuild
, this returns the member instance for the target user.- Specified by:
getTargetMember
in interfaceUserContextInteraction
- Returns:
- The target member instance, or null if this was not in a guild.
-