Skip to main content

Guild

@discordeno/bot


Documentation / @discordeno/bot / Guild

Interface: Guild

Defined in: packages/bot/src/transformers/types.ts:683

Properties

afkChannelId?

optional afkChannelId: bigint

Defined in: packages/bot/src/transformers/types.ts:751

Id of afk channel


afkTimeout

afkTimeout: number

Defined in: packages/bot/src/transformers/types.ts:689

Afk timeout in seconds


applicationId?

optional applicationId: bigint

Defined in: packages/bot/src/transformers/types.ts:759

Application id of the guild creator if it is bot-created


approximateMemberCount?

optional approximateMemberCount: number

Defined in: packages/bot/src/transformers/types.ts:729

Approximate number of members in this guild, returned from the GET /guilds/id endpoint when with_counts is true


approximatePresenceCount?

optional approximatePresenceCount: number

Defined in: packages/bot/src/transformers/types.ts:731

Approximate number of non-offline members in this guild, returned from the GET /guilds/id endpoint when with_counts is true


optional banner: bigint

Defined in: packages/bot/src/transformers/types.ts:777

Banner hash


channels

channels: Collection<bigint, Channel>

Defined in: packages/bot/src/transformers/types.ts:771

Channels in the guild


defaultMessageNotifications

defaultMessageNotifications: DefaultMessageNotificationLevels

Defined in: packages/bot/src/transformers/types.ts:695

Default message notifications level


description?

optional description: string

Defined in: packages/bot/src/transformers/types.ts:717

The description of a guild


discoverySplash?

optional discoverySplash: bigint

Defined in: packages/bot/src/transformers/types.ts:745

Discovery splash hash; only present for guilds with the "DISCOVERABLE" feature


emojis

emojis: Collection<bigint, Emoji>

Defined in: packages/bot/src/transformers/types.ts:757

Custom guild emojis


explicitContentFilter

explicitContentFilter: ExplicitContentFilterLevels

Defined in: packages/bot/src/transformers/types.ts:697

Explicit content filter level


features

features: ("banner" | "verified" | "animatedBanner" | "animatedIcon" | "applicationCommandPermissionsV2" | "autoModeration" | "community" | "creatorMonetizableProvisional" | "creatorStorePage" | "developerSupportServer" | "discoverable" | "featurable" | "invitesDisabled" | "inviteSplash" | "memberVerificationGateEnabled" | "moreSoundboard" | "moreStickers" | "news" | "partnered" | "previewEnabled" | "raidAlertsDisabled" | "roleIcons" | "roleSubscriptionsAvailableForPurchase" | "roleSubscriptionsEnabled" | "ticketedEventsEnabled" | "vanityUrl" | "vipRegions" | "welcomeScreenEnabled")[]

Defined in: packages/bot/src/transformers/types.ts:699

Enabled guild features


icon?

optional icon: bigint

Defined in: packages/bot/src/transformers/types.ts:739

Icon hash


iconHash?

optional iconHash: bigint

Defined in: packages/bot/src/transformers/types.ts:741

Icon hash, returned when in the template object


id

id: bigint

Defined in: packages/bot/src/transformers/types.ts:737

Guild id


joinedAt?

optional joinedAt: number

Defined in: packages/bot/src/transformers/types.ts:765

When this guild was joined at


large?

optional large: boolean

Defined in: packages/bot/src/transformers/types.ts:705

True if this is considered a large guild


maxMembers?

optional maxMembers: number

Defined in: packages/bot/src/transformers/types.ts:713

The maximum number of members for the guild


maxPresences?

optional maxPresences: number

Defined in: packages/bot/src/transformers/types.ts:711

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


maxStageVideoChannelUsers?

optional maxStageVideoChannelUsers: number

Defined in: packages/bot/src/transformers/types.ts:727

Maximum amount of users in a stage video channel


maxVideoChannelUsers?

optional maxVideoChannelUsers: number

Defined in: packages/bot/src/transformers/types.ts:725

The maximum amount of users in a video channel


memberCount

memberCount: number

Defined in: packages/bot/src/transformers/types.ts:709

Total number of members in this guild


members

members: Collection<bigint, Member>

Defined in: packages/bot/src/transformers/types.ts:769

Users in the guild


mfaLevel

mfaLevel: MfaLevels

Defined in: packages/bot/src/transformers/types.ts:701

Required MFA level for the guild


name

name: string

Defined in: packages/bot/src/transformers/types.ts:685

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


nsfwLevel

nsfwLevel: GuildNsfwLevel

Defined in: packages/bot/src/transformers/types.ts:733

Guild NSFW level


owner?

optional owner: boolean

Defined in: packages/bot/src/transformers/types.ts:687

True if the user is the owner of the guild


ownerId

ownerId: bigint

Defined in: packages/bot/src/transformers/types.ts:747

Id of the owner


permissions

permissions: bigint

Defined in: packages/bot/src/transformers/types.ts:749

Total permissions for the user in the guild (excludes overwrites and implicit permissions)


preferredLocale

preferredLocale: string

Defined in: packages/bot/src/transformers/types.ts:779

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


premiumProgressBarEnabled

premiumProgressBarEnabled: boolean

Defined in: packages/bot/src/transformers/types.ts:735

Whether the guild has the boost progress bar enabled


premiumSubscriptionCount?

optional premiumSubscriptionCount: number

Defined in: packages/bot/src/transformers/types.ts:723

The number of boosts this guild currently has


premiumTier

premiumTier: PremiumTiers

Defined in: packages/bot/src/transformers/types.ts:721

Premium tier (Server Boost level)


presences?

optional presences: PresenceUpdate[]

Defined in: packages/bot/src/transformers/types.ts:775

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


publicUpdatesChannelId?

optional publicUpdatesChannelId: bigint

Defined in: packages/bot/src/transformers/types.ts:781

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


roles

roles: Collection<bigint, Role>

Defined in: packages/bot/src/transformers/types.ts:755

Roles in the guild


rulesChannelId?

optional rulesChannelId: bigint

Defined in: packages/bot/src/transformers/types.ts:763

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


safetyAlertsChannelId?

optional safetyAlertsChannelId: bigint

Defined in: packages/bot/src/transformers/types.ts:789

The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord


shardId

shardId: number

Defined in: packages/bot/src/transformers/types.ts:719


splash?

optional splash: bigint

Defined in: packages/bot/src/transformers/types.ts:743

Splash hash


stageInstances?

optional stageInstances: StageInstance[]

Defined in: packages/bot/src/transformers/types.ts:785

Stage instances in the guild


stickers?

optional stickers: Collection<bigint, Sticker>

Defined in: packages/bot/src/transformers/types.ts:787

Custom guild stickers


systemChannelFlags

systemChannelFlags: SystemChannelFlags

Defined in: packages/bot/src/transformers/types.ts:703

System channel flags


systemChannelId?

optional systemChannelId: bigint

Defined in: packages/bot/src/transformers/types.ts:761

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


threads

threads: Collection<bigint, Channel>

Defined in: packages/bot/src/transformers/types.ts:773

All active threads in the guild that the current user has permission to view


toggles

toggles: GuildToggles

Defined in: packages/bot/src/transformers/types.ts:718


unavailable?

optional unavailable: boolean

Defined in: packages/bot/src/transformers/types.ts:707

True if this guild is unavailable due to an outage


vanityUrlCode?

optional vanityUrlCode: string

Defined in: packages/bot/src/transformers/types.ts:715

The vanity url code for the guild


verificationLevel

verificationLevel: VerificationLevels

Defined in: packages/bot/src/transformers/types.ts:693

Verification level required for the guild


voiceStates

voiceStates: Collection<bigint, VoiceState>

Defined in: packages/bot/src/transformers/types.ts:767

States of members currently in voice channels; lacks the guild_id key


welcomeScreen?

optional welcomeScreen: WelcomeScreen

Defined in: packages/bot/src/transformers/types.ts:783

The welcome screen of a Community guild, shown to new members, returned in an Invite's guild object


widgetChannelId?

optional widgetChannelId: bigint

Defined in: packages/bot/src/transformers/types.ts:753

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


widgetEnabled?

optional widgetEnabled: boolean

Defined in: packages/bot/src/transformers/types.ts:691

True if the server widget is enabled