MessageBuilder

class MessageBuilder : SpecBuilder<MessageCreateSpec>

Functions

actionRow
Link copied to clipboard
fun actionRow(vararg components: ActionComponent)
allowedMentions
Link copied to clipboard
fun allowedMentions(dsl: AllowedMentionsBuilderDsl.() -> Unit)
build
Link copied to clipboard
open override fun build(): MessageCreateSpec

Create the spec from this builder.

component
Link copied to clipboard
fun component(component: LayoutComponent)
content
Link copied to clipboard
fun content(content: String)
embed
Link copied to clipboard
fun embed(spec: EmbedCreateSpec)
fun embed(dsl: EmbedBuilder.() -> Unit)
file
Link copied to clipboard
fun file(fileName: String, file: InputStream, spoiler: Boolean = false)
messageReference
Link copied to clipboard
fun messageReference(messageReference: Snowflake)
nonce
Link copied to clipboard
fun nonce(nonce: String)
tts
Link copied to clipboard
fun tts(tts: Boolean)

Properties

content
Link copied to clipboard
var content: String
messageReference
Link copied to clipboard
var messageReference: Snowflake
nonce
Link copied to clipboard
var nonce: String
tts
Link copied to clipboard
var tts: Boolean

Sources

jvm source
Link copied to clipboard