Interface Reply
public interface Reply
A reply made by a command.
- Since:
- 1.0
- Version:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptiondelete()Deletes the reply message.default CommandReplyEditMonoedit()Edits the reply message.edit(CommandReplyEditSpec spec) Edits the reply message.edit(InteractionReplyEditSpec spec) Edits the reply message.edit(MessageEditSpec spec) Edits the reply message.id()The ID of the reply message.intindex()The index of the reply in the sequence of replies sent by the command.message()Retrieves the reply message.
-
Method Details
-
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
Edits the reply message.- Returns:
- An edit builder Mono that can be configured with the target edit then subscribed to apply the edit.
-
edit
Edits the reply message.- Parameters:
spec- The edit specification.- Returns:
- The edited message.
- See Also:
-
ReplySpec.from(MessageEditSpec)edit(CommandReplyEditSpec)
-
edit
Edits the reply message.- Parameters:
spec- The edit specification.- Returns:
- The edited message.
- See Also:
-
ReplySpec.from(InteractionReplyEditSpec)edit(CommandReplyEditSpec)
-
delete
Deletes the reply message.- Returns:
- A mono that completes when the message has been deleted.
-