FollowupMessageCreateBuilder

Message builder for creating messages following up interaction responses.

Constructors

Link copied to clipboard
constructor(ephemeral: Boolean)

Functions

Link copied to clipboard

Adds an Action Row to the message, configured by the builder. A message can have up to 5 action rows.

Link copied to clipboard
open fun addFile(name: String, contentProvider: ChannelProvider): NamedFile

Adds a file with the name and contentProvider to the attachments.

Link copied to clipboard
fun MessageCreateBuilder.addFile(path: Path): NamedFile

Adds a file with the given path to the attachments.

Link copied to clipboard

Configures the mentions that should trigger a mention (aka ping). Not calling this function will result in the default behavior (ping everything), calling this function but not configuring it before the request is build will result in all pings being ignored.

Link copied to clipboard
inline fun MessageCreateBuilder.embed(block: EmbedBuilder.() -> Unit)

Adds an embed to the message, configured by the block. A message can have up to 10 embeds.

Link copied to clipboard
inline fun MessageCreateBuilder.messageFlags(builder: MessageFlags.Builder.() -> Unit)

Sets the MessageFlags for the created message.

Link copied to clipboard

Properties

Link copied to clipboard

The mentions in this message that are allowed to raise a notification. Setting this to null will default to creating notifications for all mentions.

Link copied to clipboard

The message components to include in this message.

Link copied to clipboard
open override var content: String?

The text content of the message.

Link copied to clipboard
open override val embeds: MutableList<EmbedBuilder>

The embedded content of the message.

Link copied to clipboard
Link copied to clipboard
open override val files: MutableList<NamedFile>

The files to include as attachments.

Link copied to clipboard
open override var flags: MessageFlags?

Optional custom MessageFlags to add to the message created.

Link copied to clipboard
open override var suppressEmbeds: Boolean?

Do not include any embeds when serializing this message.

Link copied to clipboard
open override var suppressNotifications: Boolean?

This message will not trigger push and desktop notifications.

Link copied to clipboard
open override var tts: Boolean?

Whether this message should be played as a text-to-speech message.