CreateMessage

@Serializable
data class CreateMessage(val content: String, val nonce: String? = null, val tts: Boolean = false, val fileContent: List<Byte>? = null, val embeds: List<Embed> = emptyList(), val fileUploadEmbed: String? = null, val allowedMentions: AllowedMentions = AllowedMentions.ALL, val messageReference: MessageReference? = null, val messageComponents: List<ActionRow>? = null)(source)

Constructors

Link copied to clipboard
constructor(content: String, nonce: String? = null, tts: Boolean = false, fileContent: List<Byte>? = null, embeds: List<Embed> = emptyList(), fileUploadEmbed: String? = null, allowedMentions: AllowedMentions = AllowedMentions.ALL, messageReference: MessageReference? = null, messageComponents: List<ActionRow>? = null)

Properties

Link copied to clipboard
@SerialName(value = "allowed_mentions")
val allowedMentions: AllowedMentions
Link copied to clipboard
@SerialName(value = "content")
val content: String
Link copied to clipboard
@SerialName(value = "embeds")
val embeds: List<Embed>
Link copied to clipboard
@SerialName(value = "file")
val fileContent: List<Byte>? = null
Link copied to clipboard
@SerialName(value = "payload_json")
val fileUploadEmbed: String? = null
Link copied to clipboard
@SerialName(value = "components")
val messageComponents: List<ActionRow>? = null
Link copied to clipboard
@SerialName(value = "message_reference")
val messageReference: MessageReference? = null
Link copied to clipboard
@SerialName(value = "nonce")
val nonce: String? = null
Link copied to clipboard
@SerialName(value = "tts")
val tts: Boolean = false