Reply

interface Reply(source)

Represents an object that can be used to reply to an interaction.

Inheritors

Functions

Link copied to clipboard

Adds an ActionRow to the reply.

Link copied to clipboard
abstract fun addFlags(vararg flags: MessageFlag): Reply
abstract fun addFlags(flags: List<MessageFlag>): Reply

Adds any other message flag to the reply.

Link copied to clipboard
abstract fun setEphemeral(isEphemeral: Boolean): Reply

Sets the reply as an ephemeral message.

Link copied to clipboard
abstract fun setTTS(isTTS: Boolean): Reply

Sets the reply as a 'text to speech' message.

Link copied to clipboard
open suspend fun trigger(): NoResult

Triggers the reply.

Link copied to clipboard
abstract fun triggerWithFuture(): CompletableDeferred<NoResult>

Replies and return a CompletableDeferred that will be completed when the reply is sent.