Class MessageInteractionEvent

    • Method Detail

      • getResolvedMessage

        public Message getResolvedMessage()
        Gets the resolved targeted Message.
        Returns:
        The resolved targeted Message.
      • getTargetId

        public Snowflake getTargetId()
        Gets the ID of the targeted Message.
        Returns:
        The ID of the targeted Message.
      • getTargetMessage

        public Mono<Message> getTargetMessage()
        Requests to retrieve the targeted Message.
        Returns:
        A Mono where, upon successful completion, emits the Message targeted by the user. If an error is received, it is emitted through the Mono.
      • getTargetMessage

        public Mono<Message> getTargetMessage​(EntityRetrievalStrategy retrievalStrategy)
        Requests to retrieve the targeted Message.
        Parameters:
        retrievalStrategy - The strategy to use to get the target Message
        Returns:
        A Mono where, upon successful completion, emits the Message targeted by the user. If an error is received, it is emitted through the Mono.