Package dev.sympho.bot_utils.event.reply
Interface Reply
public interface Reply
A reply made by an event handler.
- Since:
- 1.0
- Version:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptiondelete()Deletes the reply message.default ReplyEditMonoedit()Edits the reply message.edit(ReplyEditSpec spec) Edits the reply message.edit(InteractionReplyEditSpec spec) Edits the reply message.edit(MessageEditSpec spec) Edits the reply message.@org.checkerframework.checker.index.qual.NonNegative intindex()The index of the reply in the sequence of replies sent by the handler.message()Retrieves the reply message.Retrieves the reply message's ID.
-
Method Details
-
index
The index of the reply in the sequence of replies sent by the handler.- Returns:
- The index of the reply.
- See Also:
-
message
Retrieves the reply message.- Returns:
- The reply message.
-
messageId
Retrieves the reply message's ID.- Returns:
- The reply message ID.
-
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:
-
ReplyUtils.from(MessageEditSpec)edit(ReplyEditSpec)
-
edit
Edits the reply message.- Parameters:
spec- The edit specification.- Returns:
- The edited message.
- See Also:
-
ReplyUtils.from(InteractionReplyEditSpec)edit(ReplyEditSpec)
-
delete
Deletes the reply message.- Returns:
- A mono that completes when the message has been deleted.
-