Interface UserContextInteraction
-
- All Superinterfaces:
CommandInteraction,CommandInteractionPayload,ContextInteraction<User>,IDeferrableCallback,Interaction,IReplyCallback,ISnowflake
- All Known Implementing Classes:
UserContextInteractionEvent
public interface UserContextInteraction extends ContextInteraction<User>
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MembergetTargetMember()If this context menu command was used in aGuild, this returns the member instance for the target user.default ContextInteraction.ContextTargetgetTargetType()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.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 Detail
-
getTargetType
@Nonnull default ContextInteraction.ContextTarget getTargetType()
Description copied from interface:ContextInteractionThe target type of this context interaction- Specified by:
getTargetTypein interfaceContextInteraction<User>- Returns:
- The context target type
-
-