Package-level declarations

Types

Link copied to clipboard

Message builder for creating messages following up interaction responses.

Link copied to clipboard

Message builder for publicly responding to an interaction.

Link copied to clipboard

The base builder for creating a new message.

Link copied to clipboard

Message builder for creating messages as a bot user.

Link copied to clipboard

Message builder for creating messages as a webhook user.

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
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.