DiscordInviteWithMetadata

data class DiscordInviteWithMetadata(val code: String, val guild: Optional<DiscordPartialGuild> = Optional.Missing(), val channel: DiscordChannel?, val inviter: Optional<DiscordUser> = Optional.Missing(), val targetType: Optional<InviteTargetType> = Optional.Missing(), val targetUser: Optional<DiscordUser> = Optional.Missing(), val targetApplication: Optional<DiscordPartialApplication> = Optional.Missing(), val approximatePresenceCount: OptionalInt = OptionalInt.Missing, val approximateMemberCount: OptionalInt = OptionalInt.Missing, val expiresAt: Optional<Instant?> = Optional.Missing(), val guildScheduledEvent: Optional<DiscordGuildScheduledEvent> = Optional.Missing(), val uses: Int, val maxUses: Int, val maxAge: DurationInSeconds, val temporary: Boolean, val createdAt: Instant) : BaseDiscordInvite(source)

Constructors

Link copied to clipboard
constructor(code: String, guild: Optional<DiscordPartialGuild> = Optional.Missing(), channel: DiscordChannel?, inviter: Optional<DiscordUser> = Optional.Missing(), targetType: Optional<InviteTargetType> = Optional.Missing(), targetUser: Optional<DiscordUser> = Optional.Missing(), targetApplication: Optional<DiscordPartialApplication> = Optional.Missing(), approximatePresenceCount: OptionalInt = OptionalInt.Missing, approximateMemberCount: OptionalInt = OptionalInt.Missing, expiresAt: Optional<Instant?> = Optional.Missing(), guildScheduledEvent: Optional<DiscordGuildScheduledEvent> = Optional.Missing(), uses: Int, maxUses: Int, maxAge: DurationInSeconds, temporary: Boolean, createdAt: Instant)

Properties

Link copied to clipboard
@SerialName(value = "approximate_member_count")
open override val approximateMemberCount: OptionalInt
Link copied to clipboard
@SerialName(value = "approximate_presence_count")
open override val approximatePresenceCount: OptionalInt
Link copied to clipboard
open override val channel: DiscordChannel?
Link copied to clipboard
open override val code: String
Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Instant
Link copied to clipboard
@SerialName(value = "expires_at")
open override val expiresAt: Optional<Instant?>
Link copied to clipboard
open override val guild: Optional<DiscordPartialGuild>
Link copied to clipboard
@SerialName(value = "guild_scheduled_event")
open override val guildScheduledEvent: Optional<DiscordGuildScheduledEvent>
Link copied to clipboard
open override val inviter: Optional<DiscordUser>
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
@SerialName(value = "target_application")
open override val targetApplication: Optional<DiscordPartialApplication>
Link copied to clipboard
@SerialName(value = "target_type")
open override val targetType: Optional<InviteTargetType>
Link copied to clipboard
@SerialName(value = "target_user")
open override val targetUser: Optional<DiscordUser>
Link copied to clipboard
Link copied to clipboard
val uses: Int