Interface UserContextInteraction

All Superinterfaces:
CommandInteraction, CommandInteractionPayload, ContextInteraction<User>, IDeferrableCallback, IModalCallback, Interaction, IReplyCallback, ISnowflake
All Known Implementing Classes:
UserContextInteractionEvent

public interface UserContextInteraction extends ContextInteraction<User>
Interaction with a user context menu command
  • Method Details

    • getTargetType

      @Nonnull default ContextInteraction.ContextTarget getTargetType()
      Description copied from interface: ContextInteraction
      The target type of this context interaction
      Specified by:
      getTargetType in interface ContextInteraction<User>
      Returns:
      The context target type
    • getTargetMember

      @Nullable Member getTargetMember()
      If this context menu command was used in a Guild, this returns the member instance for the target user.
      Returns:
      The target member instance, or null if this was not in a guild.