DiscordEntitlement

data class DiscordEntitlement(val id: Snowflake, val skuId: Snowflake, val applicationId: Snowflake, val userId: OptionalSnowflake = OptionalSnowflake.Missing, val type: EntitlementType, val deleted: Boolean, val startsAt: Optional<Instant> = Optional.Missing(), val endsAt: Optional<Instant?> = Optional.Missing(), val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val consumed: OptionalBoolean = OptionalBoolean.Missing)(source)

An instance of a Discord Entitlement.

Constructors

Link copied to clipboard
constructor(id: Snowflake, skuId: Snowflake, applicationId: Snowflake, userId: OptionalSnowflake = OptionalSnowflake.Missing, type: EntitlementType, deleted: Boolean, startsAt: Optional<Instant> = Optional.Missing(), endsAt: Optional<Instant?> = Optional.Missing(), guildId: OptionalSnowflake = OptionalSnowflake.Missing, consumed: OptionalBoolean = OptionalBoolean.Missing)

Properties

Link copied to clipboard
@SerialName(value = "application_id")
val applicationId: Snowflake
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "ends_at")
val endsAt: Optional<Instant?>
Link copied to clipboard
@SerialName(value = "guild_id")
val guildId: OptionalSnowflake
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "sku_id")
val skuId: Snowflake
Link copied to clipboard
@SerialName(value = "starts_at")
val startsAt: Optional<Instant>
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "user_id")
val userId: OptionalSnowflake