Skip to main content

Module guild

Module guild 

Source
Expand description

Guilds (servers).

Structs§

Ban
A ban.
Guild
A guild (called a “server” in the Discord client).
IncidentsData
Safety incidents of a guild: paused invites or DMs and detected raids or DM spam.
Integration
An integration in a guild: a bot or app, or a Twitch/YouTube subscription.
IntegrationAccount
The account of an integration (e.g. the Twitch channel).
IntegrationApplication
The application of a Discord integration.
Member
A guild member: a user’s membership in one guild, with guild-specific data such as nickname and roles.
MemberFlags
Flags of a guild member.
Onboarding
The onboarding flow of a guild: questions that give new members channels and roles.
OnboardingPrompt
A question in onboarding.
PartialGuild
A partial Guild, as attached to an application (D-051).
PartialIntegration
A partial Integration, as listed on a user’s Connection and in an AuditLog (D-051).
PartialMember
A guild member without its User, as attached to messages (MESSAGE_CREATE, MESSAGE_UPDATE) where the user is the message’s author (D-051).
Preview
The preview of a guild, visible to non-members of discoverable guilds.
PromptOption
An answer of an onboarding prompt.
Role
A role: a named set of permissions (and a color, icon and position in the member list) that members can have.
RoleColors
The colors of a role.
RoleFlags
Flags of a role.
RoleTags
The tags of a role: what the role belongs to.
SystemChannelFlags
Flags of a guild’s system channel: which automatic messages Discord does not post there.
UnavailableGuild
A guild that is not (or not yet) available to the client.
WelcomeScreen
The welcome screen of a Community guild, shown to new members.
WelcomeScreenChannel
A channel suggested on the welcome screen.
Widget
The public widget of a guild (GET /guilds/{guild.id}/widget.json).
WidgetActivity
The activity of a WidgetMember.
WidgetChannel
A channel listed in a Widget.
WidgetMember
An online member listed in a Widget. Members are anonymized: the ID is an index, not a user ID.
WidgetSettings
The widget settings of a guild.

Enums§

AgeRestrictionLevel
The age-restriction level of a guild (nsfw_level).
DefaultMessageNotificationLevel
The default notification level of a guild’s members.
ExplicitContentFilterLevel
The explicit content filter level: whose media is scanned.
Feature
A guild feature: something a guild has access to or has enabled.
IntegrationExpireBehavior
What happens to expired subscribers of an integration.
IntegrationType
The kind of an Integration.
MfaLevel
The MFA level required for moderation actions.
OnboardingMode
The onboarding mode: what counts towards the onboarding constraints.
PremiumTier
The premium tier (Server Boost level) of a guild.
PromptType
How an OnboardingPrompt is displayed.
VerificationLevel
The verification level members must meet before they can talk.
WidgetStyle
The style of a widget image (GET /guilds/{guild.id}/widget.png?style=).