DiscordGuild

constructor(id: Snowflake, name: String, icon: String?, iconHash: Optional<String?> = Optional.Missing(), splash: Optional<String?> = Optional.Missing(), discoverySplash: Optional<String?> = Optional.Missing(), owner: OptionalBoolean = OptionalBoolean.Missing, ownerId: Snowflake, permissions: Optional<Permissions> = Optional.Missing(), region: String, afkChannelId: Snowflake?, afkTimeout: DurationInSeconds, widgetEnabled: OptionalBoolean = OptionalBoolean.Missing, widgetChannelId: OptionalSnowflake? = OptionalSnowflake.Missing, verificationLevel: VerificationLevel, defaultMessageNotifications: DefaultMessageNotificationLevel, explicitContentFilter: ExplicitContentFilter, roles: List<DiscordRole>, emojis: List<DiscordEmoji>, features: List<GuildFeature>, mfaLevel: MFALevel, applicationId: Snowflake?, systemChannelId: Snowflake?, systemChannelFlags: SystemChannelFlags, rulesChannelId: Snowflake?, joinedAt: Optional<Instant> = Optional.Missing(), large: OptionalBoolean = OptionalBoolean.Missing, unavailable: OptionalBoolean = OptionalBoolean.Missing, memberCount: OptionalInt = OptionalInt.Missing, voiceStates: Optional<List<DiscordVoiceState>> = Optional.Missing(), members: Optional<List<DiscordGuildMember>> = Optional.Missing(), channels: Optional<List<DiscordChannel>> = Optional.Missing(), threads: Optional<List<DiscordChannel>> = Optional.Missing(), presences: Optional<List<DiscordPresenceUpdate>> = Optional.Missing(), maxPresences: OptionalInt? = OptionalInt.Missing, maxMembers: OptionalInt = OptionalInt.Missing, vanityUrlCode: String?, description: String?, banner: String?, premiumTier: PremiumTier, premiumSubscriptionCount: OptionalInt = OptionalInt.Missing, preferredLocale: String, publicUpdatesChannelId: Snowflake?, maxVideoChannelUsers: OptionalInt = OptionalInt.Missing, maxStageVideoChannelUsers: OptionalInt = OptionalInt.Missing, approximateMemberCount: OptionalInt = OptionalInt.Missing, approximatePresenceCount: OptionalInt = OptionalInt.Missing, welcomeScreen: Optional<DiscordWelcomeScreen> = Optional.Missing(), nsfwLevel: NsfwLevel, stageInstances: Optional<List<DiscordStageInstance>> = Optional.Missing(), stickers: Optional<List<DiscordMessageSticker>> = Optional.Missing(), guildScheduledEvents: Optional<List<DiscordGuildScheduledEvent>> = Optional.Missing(), premiumProgressBarEnabled: Boolean, safetyAlertsChannelId: Snowflake?)(source)

Parameters

id

The guild id.

name

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

icon

The icon hash.

iconHash

The icon hash, returned when in the template object.

splash

The splash hash.

discoverySplash

The discovery splash hash; only present for guilds with the GuildFeature.Discoverable feature.

owner

True if DiscordUser is the owner of the guild.

ownerId

The id of the owner.

permissions

The total permissions for DiscordUser in the guild (excludes overwrites).

region

DiscordVoiceRegion id for the guild.

afkChannelId

The id of afk channel.

afkTimeout

The afk timeout.

widgetEnabled

True if the server widget is enabled.

widgetChannelId

The channel id that the widget will generate an invite to, or null if set to no invite.

verificationLevel

VerificationLevel required for the guild.

defaultMessageNotifications
explicitContentFilter
roles

The roles in the guild.

emojis

The custom guild emojis.

features

The enabled guild features.

mfaLevel

The required MFALevel for the guild.

applicationId

The application id of the guild creator if it is bot-created.

systemChannelId

The id of the channel where guild notices such as welcome messages and boost events are posted.

systemChannelFlags
rulesChannelId

The id of the channel where Community guilds can display rules and/or guidelines.

joinedAt

When this guild was joined at.

large

True if this is considered a large guild.

unavailable

True if this guild is unavailable due to an outage.

memberCount

The total number of members in this guild.

voiceStates

The states of members currently in voice channels; lacks the DiscordVoiceState.guildId key.

members

The users in the guild.

channels

The channels in the guild.

presences

The presences of the members in the guild, will only include non-offline members if the size is greater than large threshold.

maxPresences

The maximum number of presences for the guild (the default value, currently 25000, is in effect when null is returned).

maxMembers

The maximum number of members for the guild.

vanityUrlCode

The vanity url code for the guild.

description

The description for the guild.

banner

The banner hash.

premiumTier

The PremiumTier (Server Boost level).

premiumSubscriptionCount

The number of boosts this guild currently has.

preferredLocale

The preferred locale of a Community guild; used in server discovery and notices from Discord; defaults to "en-US".

publicUpdatesChannelId

The id of the channel where admins and moderators of Community guilds receive notices from Discord.

maxVideoChannelUsers

The maximum amount of users in a video channel.

maxStageVideoChannelUsers

The maximum amount of users in a stage video channel.

approximateMemberCount

The approximate number of members in this guild, returned from the GET /guild/<id> endpoint when with_counts is true.

approximatePresenceCount

The approximate number of non-offline members in this guild, returned from the GET /guild/<id> endpoint when with_counts is true.

welcomeScreen

The welcome screen of a Community guild, shown to new members.

nsfwLevel

Guild NSFW level.