Guild

@Serializable
data class Guild(val id: String, val name: String, val iconHash: String?, val splashHash: String?, val discoverySplashHash: String?, val userIsOwner: Boolean? = null, val ownerId: String, val permissions: Permissions? = null, val afkChannelId: String?, val afkTimeoutSeconds: Int, val widgetEnabled: Boolean? = null, val widgetChannelId: String? = null, val verificationLevel: VerificationLevel, val defaultMessageNotificationLevel: NotificationsLevel, val explicitContentFilterLevel: ExplicitContentFilterLevel, val roles: List<Role>, val emojis: List<Emoji>, val features: List<GuildFeatures>, val mfaLevel: MFALevel, val owningApplicationId: String?, val systemMessageChannelId: String?, val systemChannelFlags: SystemChannelFlags, val rulesChannelId: String?, val maxPresences: Int? = null, val maxMembers: Int? = null, val vanityCodeUrl: String?, val description: String?, val bannerHash: String?, val premiumType: GuildPremiumType, val guildBoostCount: Int? = null, val preferredLocale: String, val publicUpdatesChannelId: String?, val maxVideoChannelUsers: Int? = null, val approximateMemberCount: Int? = null, val approximatePresenceCount: Int? = null, val welcomeScreen: WelcomeScreen? = null, val nsfwLevel: GuildNSFWLevel, val stageInstances: List<StageInstance>? = null, val sticker: List<Sticker>? = null)(source)

Constructors

Link copied to clipboard
constructor(id: String, name: String, iconHash: String?, splashHash: String?, discoverySplashHash: String?, userIsOwner: Boolean? = null, ownerId: String, permissions: Permissions? = null, afkChannelId: String?, afkTimeoutSeconds: Int, widgetEnabled: Boolean? = null, widgetChannelId: String? = null, verificationLevel: VerificationLevel, defaultMessageNotificationLevel: NotificationsLevel, explicitContentFilterLevel: ExplicitContentFilterLevel, roles: List<Role>, emojis: List<Emoji>, features: List<GuildFeatures>, mfaLevel: MFALevel, owningApplicationId: String?, systemMessageChannelId: String?, systemChannelFlags: SystemChannelFlags, rulesChannelId: String?, maxPresences: Int? = null, maxMembers: Int? = null, vanityCodeUrl: String?, description: String?, bannerHash: String?, premiumType: GuildPremiumType, guildBoostCount: Int? = null, preferredLocale: String, publicUpdatesChannelId: String?, maxVideoChannelUsers: Int? = null, approximateMemberCount: Int? = null, approximatePresenceCount: Int? = null, welcomeScreen: WelcomeScreen? = null, nsfwLevel: GuildNSFWLevel, stageInstances: List<StageInstance>? = null, sticker: List<Sticker>? = null)

Properties

Link copied to clipboard
@SerialName(value = "afk_channel_id")
val afkChannelId: String?
Link copied to clipboard
@SerialName(value = "afk_timeout")
val afkTimeoutSeconds: Int
Link copied to clipboard
@SerialName(value = "approximate_member_count")
val approximateMemberCount: Int? = null
Link copied to clipboard
@SerialName(value = "approximate_presence_count")
val approximatePresenceCount: Int? = null
Link copied to clipboard
@SerialName(value = "banner")
val bannerHash: String?
Link copied to clipboard
@SerialName(value = "default_message_notifications")
val defaultMessageNotificationLevel: NotificationsLevel
Link copied to clipboard
@SerialName(value = "description")
val description: String?
Link copied to clipboard
@SerialName(value = "discovery_splash")
val discoverySplashHash: String?
Link copied to clipboard
@SerialName(value = "emojis")
val emojis: List<Emoji>
Link copied to clipboard
@SerialName(value = "explicit_content_filter")
val explicitContentFilterLevel: ExplicitContentFilterLevel
Link copied to clipboard
@SerialName(value = "features")
val features: List<GuildFeatures>
Link copied to clipboard
@SerialName(value = "premium_subscription_count")
val guildBoostCount: Int? = null
Link copied to clipboard
@SerialName(value = "icon")
val iconHash: String?
Link copied to clipboard
@SerialName(value = "id")
val id: String
Link copied to clipboard
@SerialName(value = "max_members")
val maxMembers: Int? = null
Link copied to clipboard
@SerialName(value = "max_presences")
val maxPresences: Int? = null
Link copied to clipboard
@SerialName(value = "max_video_channel_users")
val maxVideoChannelUsers: Int? = null
Link copied to clipboard
@SerialName(value = "mfa_level")
val mfaLevel: MFALevel
Link copied to clipboard
@SerialName(value = "name")
val name: String
Link copied to clipboard
@SerialName(value = "nsfw_level")
val nsfwLevel: GuildNSFWLevel
Link copied to clipboard
@SerialName(value = "owner_id")
val ownerId: String
Link copied to clipboard
@SerialName(value = "application_id")
val owningApplicationId: String?
Link copied to clipboard
@SerialName(value = "permissions")
val permissions: Permissions? = null
Link copied to clipboard
@SerialName(value = "preferred_locale")
val preferredLocale: String
Link copied to clipboard
@SerialName(value = "premium_tier")
val premiumType: GuildPremiumType
Link copied to clipboard
@SerialName(value = "public_updates_channel_id")
val publicUpdatesChannelId: String?
Link copied to clipboard
@SerialName(value = "roles")
val roles: List<Role>
Link copied to clipboard
@SerialName(value = "rules_channel_id")
val rulesChannelId: String?
Link copied to clipboard
@SerialName(value = "splash")
val splashHash: String?
Link copied to clipboard
@SerialName(value = "stage_instances")
val stageInstances: List<StageInstance>? = null
Link copied to clipboard
@SerialName(value = "stickers")
val sticker: List<Sticker>? = null
Link copied to clipboard
@SerialName(value = "system_channel_flags")
val systemChannelFlags: SystemChannelFlags
Link copied to clipboard
@SerialName(value = "system_channel_id")
val systemMessageChannelId: String?
Link copied to clipboard
@SerialName(value = "owner")
val userIsOwner: Boolean? = null
Link copied to clipboard
@SerialName(value = "vanity_url_code")
val vanityCodeUrl: String?
Link copied to clipboard
@SerialName(value = "verification_level")
val verificationLevel: VerificationLevel
Link copied to clipboard
@SerialName(value = "welcome_screen")
val welcomeScreen: WelcomeScreen? = null
Link copied to clipboard
@SerialName(value = "widget_channel_id")
val widgetChannelId: String? = null
Link copied to clipboard
@SerialName(value = "widget_enabled")
val widgetEnabled: Boolean? = null

Functions

Link copied to clipboard
fun Guild.jpgIcon(size: Int? = null): String?

Gets the url of the guild icon in JPG format. Null if there is no custom icon.

Link copied to clipboard
fun Guild.jpgSplash(size: Int? = null): String?

Gets the url of the guild splash in JPG format. Null if there is no splash.

Link copied to clipboard
fun Guild.pngIcon(size: Int? = null): String?

Gets the url of the guild icon in PNG format. Null if there is no custom icon.

Link copied to clipboard
fun Guild.pngSplash(size: Int? = null): String?

Gets the url of the guild splash in PNG format. Null if there is no splash.

Link copied to clipboard
fun Guild.webpIcon(size: Int? = null): String?

Gets the url of the guild icon in WEBP format. Null if there is no custom icon.

Link copied to clipboard
fun Guild.webpSplash(size: Int? = null): String?

Gets the url of the guild splash in WEBP format. Null if there is no splash.