Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The mentions in the message that are allowed to trigger a ping.

Link copied to clipboard

The attachment objects with filename and description.

Link copied to clipboard

The components to include with the message.

Link copied to clipboard
override var content: String?

The message contents (up to 2000 characters).

Link copied to clipboard

Up to 10 embeds (up to 6000 characters).

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

The files to include as attachments.

Link copied to clipboard
override var flags: MessageFlags?

Optional custom MessageFlags to add to the message created.

Link copied to clipboard
var stickerIds: MutableList<Snowflake>?

The IDs of up to three stickers to send in the message.

Link copied to clipboard
override var suppressEmbeds: Boolean?

Do not include any embeds when serializing this message.

Link copied to clipboard

This message will not trigger push and desktop notifications.

Link copied to clipboard
override var tts: Boolean?

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

Functions

Link copied to clipboard
inline fun MessageBuilder.actionRow(builder: ActionRowBuilder.() -> Unit)

Adds an action row configured by the builder to the components of the message.

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 name and contentProvider to files.

Link copied to clipboard
inline fun MessageBuilder.addFile(name: String, contentProvider: ChannelProvider, builder: AttachmentBuilder.() -> Unit): NamedFile

Adds a file with name and contentProvider to files.

inline fun MessageBuilder.addFile(path: Path, builder: AttachmentBuilder.() -> Unit): NamedFile

Adds a file with the given path to files.

Adds a file with the given path to the attachments.

Link copied to clipboard

Configures the mentions in the message that are allowed to trigger a ping.

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 MessageBuilder.embed(builder: EmbedBuilder.() -> Unit)

Adds an embed configured by builder to the embeds of the message.

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 MessageBuilder.messageFlags(builder: MessageFlags.Builder.() -> Unit)

Sets the flags for the message.

inline fun MessageCreateBuilder.messageFlags(builder: MessageFlags.Builder.() -> Unit)

Sets the MessageFlags for the created message.

Link copied to clipboard
fun ForumMessageCreateBuilder.stickerId(stickerId: Snowflake)
Link copied to clipboard