Interface ContextInteraction<T>

Type Parameters:
T - The target type of this context interaction
All Superinterfaces:
CommandInteraction, CommandInteractionPayload, IDeferrableCallback, IModalCallback, Interaction, IPremiumRequiredReplyCallback, IReplyCallback, ISnowflake
All Known Subinterfaces:
MessageContextInteraction, UserContextInteraction
All Known Implementing Classes:
GenericContextInteractionEvent, MessageContextInteractionEvent, UserContextInteractionEvent

public interface ContextInteraction<T> extends CommandInteraction
Represents application comments which are invoked as context menu items in the client UI.
See Also:
  • Method Details

    • getTargetType

      The target type of this context interaction
      Returns:
      The context target type
    • getTarget

      @Nonnull T getTarget()
      The target entity of this context interaction
      Returns:
      The target entity