DiscordInvite

data class DiscordInvite(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 stageInstance: Optional<DiscordStageInstance> = Optional.Missing(), val guildScheduledEvent: Optional<DiscordGuildScheduledEvent> = Optional.Missing()) : 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(), stageInstance: Optional<DiscordStageInstance> = Optional.Missing(), guildScheduledEvent: Optional<DiscordGuildScheduledEvent> = Optional.Missing())

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 = "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 = "stage_instance")
val stageInstance: Optional<DiscordStageInstance>
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>