public interface Reply
A reply made by a command.
Since:
1.0
Version:
1.0
  • Method Details

    • index

      @Pure int index()
      The index of the reply in the sequence of replies sent by the command.
      Returns:
      The index of the reply.
      See Also:
    • id

      The ID of the reply message.
      Returns:
      The message ID.
    • message

      Retrieves the reply message.
      Returns:
      The reply message.
    • edit

      Edits the reply message.
      Parameters:
      spec - The edit specification.
      Returns:
      The edited message.
    • edit

      default CommandReplyEditMono edit()
      Edits the reply message.
      Returns:
      An edit builder Mono that can be configured with the target edit then subscribed to apply the edit.
    • edit

      default Mono<Message> edit(MessageEditSpec spec)
      Edits the reply message.
      Parameters:
      spec - The edit specification.
      Returns:
      The edited message.
      See Also:
    • edit

      default Mono<Message> edit(InteractionReplyEditSpec spec)
      Edits the reply message.
      Parameters:
      spec - The edit specification.
      Returns:
      The edited message.
      See Also:
    • delete

      Mono<Void> delete()
      Deletes the reply message.
      Returns:
      A mono that completes when the message has been deleted.