MessageData

data class MessageData(val id: Snowflake, val channelId: Snowflake, val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val author: UserData, val content: String, val timestamp: Instant, val editedTimestamp: Instant? = null, val tts: Boolean, val mentionEveryone: Boolean, val mentions: List<Snowflake>, val mentionRoles: List<Snowflake>, val mentionedChannels: Optional<List<Snowflake>> = Optional.Missing(), val attachments: List<AttachmentData>, val embeds: List<EmbedData>, val reactions: Optional<List<ReactionData>> = Optional.Missing(), val nonce: Optional<String> = Optional.Missing(), val pinned: Boolean, val webhookId: OptionalSnowflake = OptionalSnowflake.Missing, val type: MessageType, val activity: Optional<MessageActivity> = Optional.Missing(), val application: Optional<MessageApplication> = Optional.Missing(), val applicationId: OptionalSnowflake = OptionalSnowflake.Missing, val messageReference: Optional<MessageReferenceData> = Optional.Missing(), val flags: Optional<MessageFlags> = Optional.Missing(), val stickers: Optional<List<StickerItemData>> = Optional.Missing(), val referencedMessage: Optional<MessageData?> = Optional.Missing(), val interaction: Optional<MessageInteractionData> = Optional.Missing(), val components: Optional<List<ComponentData>> = Optional.Missing(), val roleSubscriptionData: Optional<RoleSubscription> = Optional.Missing(), val position: OptionalInt = OptionalInt.Missing)(source)

Constructors

Link copied to clipboard
constructor(id: Snowflake, channelId: Snowflake, guildId: OptionalSnowflake = OptionalSnowflake.Missing, author: UserData, content: String, timestamp: Instant, editedTimestamp: Instant? = null, tts: Boolean, mentionEveryone: Boolean, mentions: List<Snowflake>, mentionRoles: List<Snowflake>, mentionedChannels: Optional<List<Snowflake>> = Optional.Missing(), attachments: List<AttachmentData>, embeds: List<EmbedData>, reactions: Optional<List<ReactionData>> = Optional.Missing(), nonce: Optional<String> = Optional.Missing(), pinned: Boolean, webhookId: OptionalSnowflake = OptionalSnowflake.Missing, type: MessageType, activity: Optional<MessageActivity> = Optional.Missing(), application: Optional<MessageApplication> = Optional.Missing(), applicationId: OptionalSnowflake = OptionalSnowflake.Missing, messageReference: Optional<MessageReferenceData> = Optional.Missing(), flags: Optional<MessageFlags> = Optional.Missing(), stickers: Optional<List<StickerItemData>> = Optional.Missing(), referencedMessage: Optional<MessageData?> = Optional.Missing(), interaction: Optional<MessageInteractionData> = Optional.Missing(), components: Optional<List<ComponentData>> = Optional.Missing(), roleSubscriptionData: Optional<RoleSubscription> = Optional.Missing(), position: OptionalInt = OptionalInt.Missing)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
operator fun plus(partialMessage: DiscordPartialMessage): MessageData