MessageDelta

open class MessageDelta(val attachments: Optional<Set<Attachment>>, val content: Optional<String>, val editedTimestamp: Optional<Instant?>, val embeds: Optional<List<Embed>>, val isPinned: Optional<Boolean>, val mentionedChannelIds: Optional<Set<Snowflake>>, val mentionedRoleIds: Optional<Set<Snowflake>>, val mentionedUserIds: Optional<Set<Snowflake>>, val mentionsEveryone: Optional<Boolean>, val reactions: Optional<Set<Reaction>>, val stickers: Optional<List<StickerItem>>)

Represents the difference between two Kord Message objects.

This is intended for use with events that change things, to make logging easier - but may have other applications. All properties available on this object have the same names as the corresponding properties on the Message object.

Optionals will be Optional.Missing if there was no change - otherwise they'll contain the value from the new Message.

Constructors

Link copied to clipboard
constructor(attachments: Optional<Set<Attachment>>, content: Optional<String>, editedTimestamp: Optional<Instant?>, embeds: Optional<List<Embed>>, isPinned: Optional<Boolean>, mentionedChannelIds: Optional<Set<Snowflake>>, mentionedRoleIds: Optional<Set<Snowflake>>, mentionedUserIds: Optional<Set<Snowflake>>, mentionsEveryone: Optional<Boolean>, reactions: Optional<Set<Reaction>>, stickers: Optional<List<StickerItem>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val attachments: Optional<Set<Attachment>>
Link copied to clipboard
open val changes: Set<String>

A Set representing the values that have changes. Each value is represented by a human-readable string.

Link copied to clipboard
val content: Optional<String>
Link copied to clipboard
val editedTimestamp: Optional<Instant?>
Link copied to clipboard
val embeds: Optional<List<Embed>>
Link copied to clipboard
val isPinned: Optional<Boolean>
Link copied to clipboard
val mentionedChannelIds: Optional<Set<Snowflake>>
Link copied to clipboard
val mentionedRoleIds: Optional<Set<Snowflake>>
Link copied to clipboard
val mentionedUserIds: Optional<Set<Snowflake>>
Link copied to clipboard
val mentionsEveryone: Optional<Boolean>
Link copied to clipboard
val reactions: Optional<Set<Reaction>>
Link copied to clipboard
val stickers: Optional<List<StickerItem>>