Class SendableReply
java.lang.Object
io.github.kaktushose.jdac.dispatching.reply.ConfigurableReply
io.github.kaktushose.jdac.dispatching.reply.SendableReply
Subtype of
ConfigurableReply that allows replying without message content (reply()).-
Field Summary
Fields inherited from class ConfigurableReply
replyAction -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ConfigurableReply
builder, components, components, editReply, embeds, embeds, embeds, embeds, ephemeral, keepComponents, keepSelections, reply
-
Constructor Details
-
SendableReply
Constructs a new SendableReply.- Parameters:
reply- the underlyingConfigurableReply
-
-
Method Details
-
reply
Sends the reply to Discord and blocks the current thread until the message was sent.- Returns:
- the
Messagethat got created - Implementation Note:
This method can handle both message replies and message edits. it will check if the interaction got acknowledged and will acknowledge it if necessary before sending or editing a message. After that,
WebhookClient.sendMessage(MessageCreateData)or respectivelyInteractionHook.editOriginal(MessageEditData)will be called.If
keepComponentsistrue, queries the original message first and adds its components to the reply before sending it.
-