DiscordCreatedInvite

data class DiscordCreatedInvite(val channelId: Snowflake, val code: String, val createdAt: Instant, val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val inviter: Optional<DiscordUser> = Optional.Missing(), val maxAge: DurationInSeconds, val maxUses: Int, val targetType: Optional<InviteTargetType> = Optional.Missing(), val targetUser: Optional<DiscordUser> = Optional.Missing(), val targetApplication: Optional<DiscordPartialApplication> = Optional.Missing(), val temporary: Boolean, val uses: Int)(source)

Constructors

Link copied to clipboard
constructor(channelId: Snowflake, code: String, createdAt: Instant, guildId: OptionalSnowflake = OptionalSnowflake.Missing, inviter: Optional<DiscordUser> = Optional.Missing(), maxAge: DurationInSeconds, maxUses: Int, targetType: Optional<InviteTargetType> = Optional.Missing(), targetUser: Optional<DiscordUser> = Optional.Missing(), targetApplication: Optional<DiscordPartialApplication> = Optional.Missing(), temporary: Boolean, uses: Int)

Properties

Link copied to clipboard
@SerialName(value = "channel_id")
val channelId: Snowflake
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Instant
Link copied to clipboard
@SerialName(value = "guild_id")
val guildId: OptionalSnowflake
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "max_age")
val maxAge: DurationInSeconds
Link copied to clipboard
@SerialName(value = "max_uses")
val maxUses: Int
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "target_type")
val targetType: Optional<InviteTargetType>
Link copied to clipboard
@SerialName(value = "target_user")
val targetUser: Optional<DiscordUser>
Link copied to clipboard
Link copied to clipboard
val uses: Int