DiscordPartialGuild

data class DiscordPartialGuild(val id: Snowflake, val name: String, val icon: String?, val owner: OptionalBoolean = OptionalBoolean.Missing, val permissions: Optional<Permissions> = Optional.Missing(), val features: List<GuildFeature>, val welcomeScreen: Optional<DiscordWelcomeScreen> = Optional.Missing(), val vanityUrlCode: Optional<String?> = Optional.Missing(), val description: Optional<String?> = Optional.Missing(), val banner: Optional<String?> = Optional.Missing(), val splash: Optional<String?> = Optional.Missing(), val nsfwLevel: Optional<NsfwLevel> = Optional.Missing(), val verificationLevel: Optional<VerificationLevel> = Optional.Missing(), val stageInstances: Optional<List<DiscordStageInstance>> = Optional.Missing(), val stickers: Optional<List<DiscordMessageSticker>> = Optional.Missing(), val guildScheduledEvents: Optional<List<DiscordGuildScheduledEvent>> = Optional.Missing(), val approximateMemberCount: OptionalInt = OptionalInt.Missing, val approximatePresenceCount: OptionalInt = OptionalInt.Missing, val premiumProgressBarEnabled: OptionalBoolean = OptionalBoolean.Missing)(source)

A partial representation of a Discord Guild structure

see Get Current User Guilds

Parameters

id

The guild id.

name

The guild name (2-100 characters, excluding trailing and leading whitespace)

icon

The icon hash.

owner

True if DiscordUser is the owner of the guild.

features

The enabled guild features.

Constructors

Link copied to clipboard
constructor(id: Snowflake, name: String, icon: String?, owner: OptionalBoolean = OptionalBoolean.Missing, permissions: Optional<Permissions> = Optional.Missing(), features: List<GuildFeature>, welcomeScreen: Optional<DiscordWelcomeScreen> = Optional.Missing(), vanityUrlCode: Optional<String?> = Optional.Missing(), description: Optional<String?> = Optional.Missing(), banner: Optional<String?> = Optional.Missing(), splash: Optional<String?> = Optional.Missing(), nsfwLevel: Optional<NsfwLevel> = Optional.Missing(), verificationLevel: Optional<VerificationLevel> = Optional.Missing(), stageInstances: Optional<List<DiscordStageInstance>> = Optional.Missing(), stickers: Optional<List<DiscordMessageSticker>> = Optional.Missing(), guildScheduledEvents: Optional<List<DiscordGuildScheduledEvent>> = Optional.Missing(), approximateMemberCount: OptionalInt = OptionalInt.Missing, approximatePresenceCount: OptionalInt = OptionalInt.Missing, premiumProgressBarEnabled: OptionalBoolean = OptionalBoolean.Missing)

Properties

Link copied to clipboard
@SerialName(value = "approximate_member_count")
val approximateMemberCount: OptionalInt
Link copied to clipboard
@SerialName(value = "approximate_presence_count")
val approximatePresenceCount: OptionalInt
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val icon: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "nsfw_level")
val nsfwLevel: Optional<NsfwLevel>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "premium_progress_bar_enabled")
val premiumProgressBarEnabled: OptionalBoolean
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "stage_instances")
val stageInstances: Optional<List<DiscordStageInstance>>
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "vanity_url_code")
val vanityUrlCode: Optional<String?>
Link copied to clipboard
@SerialName(value = "verification_level")
val verificationLevel: Optional<VerificationLevel>
Link copied to clipboard
@SerialName(value = "welcome_screen")
val welcomeScreen: Optional<DiscordWelcomeScreen>