DiscordGuildProfile

data class DiscordGuildProfile(val id: Snowflake, val name: String, val iconHash: String?, val memberCount: Int, val onlineCount: Int, val description: String, val brandColorPrimary: Color, val bannerHash: String?, val gameApplicationIds: List<Snowflake>, val gameActivity: Map<Snowflake, DiscordGameActivity>, val tag: String?, val badge: GuildBadgeType, val badgeColorPrimary: Color, val badgeColorSecondary: Color, val badgeHash: String, val traits: List<DiscordGuildTrait>, val features: List<GuildFeature>, val visibility: GuildVisibilityLevel, val customBannerHash: String?, val premiumSubscriptionCount: Int, val premiumTier: PremiumTier)(source)

A representation of a Discord Guild Profile

Parameters

id

The ID of the guild

name

The name of the guild (2-100 characters)

iconHash

The guilds icon hash

memberCount

Approximate count of guild members

onlineCount

Approximate count of non-offline guild members

description

The description for the guild (max 300 characters)

brandColorPrimary

The guilds accent color as a hexadecimal color string

bannerHash

The guilds clan banner hash

gameApplicationIds

The IDs of the applications representing the games the guild plays (max 20)

gameActivity

The activity of the guild in each game

tag

The tag of the guild (2-4 characters)

badge

The badge shown on the guilds tag

badgeColorPrimary

The primary color of the badge as a hexadecimal color string

badgeColorSecondary

The secondary color of the badge a hexadecimal color string

badgeHash

The guild tag badge hash

traits

a list of terms used to describe the guilds interest and personality (max 5)

features

a list of enabled GuildFeatures

visibility

The GuildVisibilityLevel for the guild

customBannerHash

The guilds discovery splash hash

premiumSubscriptionCount

The number of premium subscriptions (boosts) the guild currently has

premiumTier

The guilds PremiumTier (boost level)

Constructors

Link copied to clipboard
constructor(id: Snowflake, name: String, iconHash: String?, memberCount: Int, onlineCount: Int, description: String, brandColorPrimary: Color, bannerHash: String?, gameApplicationIds: List<Snowflake>, gameActivity: Map<Snowflake, DiscordGameActivity>, tag: String?, badge: GuildBadgeType, badgeColorPrimary: Color, badgeColorSecondary: Color, badgeHash: String, traits: List<DiscordGuildTrait>, features: List<GuildFeature>, visibility: GuildVisibilityLevel, customBannerHash: String?, premiumSubscriptionCount: Int, premiumTier: PremiumTier)

Properties

Link copied to clipboard
Link copied to clipboard
@SerialName(value = "badge_color_primary")
val badgeColorPrimary: Color
Link copied to clipboard
@SerialName(value = "badge_color_secondary")
val badgeColorSecondary: Color
Link copied to clipboard
@SerialName(value = "badge_hash")
val badgeHash: String
Link copied to clipboard
@SerialName(value = "banner_hash")
val bannerHash: String?
Link copied to clipboard
@SerialName(value = "brand_color_primary")
val brandColorPrimary: Color
Link copied to clipboard
@SerialName(value = "custom_banner_hash")
val customBannerHash: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "game_activity")
val gameActivity: Map<Snowflake, DiscordGameActivity>
Link copied to clipboard
@SerialName(value = "game_application_ids")
val gameApplicationIds: List<Snowflake>
Link copied to clipboard
@SerialName(value = "icon_hash")
val iconHash: String?
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "member_count")
val memberCount: Int
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "online_count")
val onlineCount: Int
Link copied to clipboard
@SerialName(value = "premium_subscription_count")
val premiumSubscriptionCount: Int
Link copied to clipboard
@SerialName(value = "premium_tier")
val premiumTier: PremiumTier
Link copied to clipboard
val tag: String?
Link copied to clipboard
Link copied to clipboard