WebhookMessageBuilder

class WebhookMessageBuilder : SpecBuilder<WebhookExecuteSpec>

Functions

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

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)
tts
Link copied to clipboard
fun tts(tts: Boolean)
username
Link copied to clipboard
fun username(username: String)

Properties

avatarUrl
Link copied to clipboard
var avatarUrl: String
content
Link copied to clipboard
var content: String
tts
Link copied to clipboard
var tts: Boolean
username
Link copied to clipboard
var username: String

Sources

jvm source
Link copied to clipboard