Class InteractionDefinition.ReplyConfig.Builder
- Enclosing class:
InteractionDefinition.ReplyConfig
InteractionDefinition.ReplyConfig.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneditReply(boolean editReply) Whether to edit the original message or to send a new one.ephemeral(boolean ephemeral) Whether to send ephemeral replies.keepComponents(boolean keepComponents) Whether to keep the original components when editing a message.keepSelections(boolean keepSelections) Whether to keep the selections of a string select menu when sending edits.
-
Constructor Details
-
Builder
public Builder()Constructs a new Builder.
-
-
Method Details
-
ephemeral
Whether to send ephemeral replies. Default value is
false.Ephemeral messages have some limitations and will be removed once the user restarts their client. Limitations:
- Cannot contain any files/ attachments
- Cannot be reacted to
- Cannot be retrieved
-
keepComponents
Whether to keep the original components when editing a message. Default value is
true.More formally, if editing a message and
keepComponentsistrue, the original message will first be queried and its components get added to the reply before it is sent. -
keepSelections
Whether to keep the selections of a string select menu when sending edits. This setting only has an effect withInteractionDefinition.ReplyConfig.keepComponents()true. -
editReply
Whether to edit the original message or to send a new one. Default value is
true.The original message is the message, from which this event (interaction) originates. For example if this event is a ButtonEvent, the original message will be the message to which the pressed button is attached to.
Subsequent replies to the same slash command event or the button event cannot be edited.
-