UserDelta

open class UserDelta(val avatar: Optional<Asset?>, val username: Optional<String>, val discriminator: Optional<String>, val flags: Optional<UserFlags?>)

Represents the difference between two Kord User 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 User object.

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

Inheritors

Constructors

Link copied to clipboard
constructor(avatar: Optional<Asset?>, username: Optional<String>, discriminator: Optional<String>, flags: Optional<UserFlags?>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val avatar: Optional<Asset?>
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 discriminator: Optional<String>
Link copied to clipboard
val flags: Optional<UserFlags?>
Link copied to clipboard
val username: Optional<String>