GuildBuilder
Properties
MFALevel
An enumeration of MFA levels.
- None: 0
- Elevated: 1
VerificationLevel
An enumeration of filter levels.
- None: 0
- Low: 1
- Medium: 2
- High: 2
- VeryHigh: 2
NotificationLevel
An enumeration of filter levels.
- AllMessages: 0
- OnlyMentions: 1
ExplicitContentFilterLevel
An enumeration of filter levels.
- Disabled: 0
- MembersWithoutRoles: 1
- AllMembers: 2
GuildFeature
An enumeration of guild features.
- AnimatedBanner: “ANIMATED_BANNER”
- AnimatedIcon: “ANIMATED_ICON”
- ApplicationCommandPermissionsV2: “APPLICATION_COMMAND_PERMISSIONS_V2”
- AutoModeration: “AUTO_MODERATION”
- Banner: “BANNER”
- Community: “COMMUNITY”
- CreatorMonetizableProvisional: “CREATOR_MONETIZABLE_PROVISIONAL”
- CreatorStorePage: “CREATOR_STORE_PAGE”
- DeveloperSupportServer: “DEVELOPER_SUPPORT_SERVER”
- Discoverable: “DISCOVERABLE”
- Featurable: “FEATURABLE”
- InvitesDisabled: “INVITES_DISABLED”
- InviteSplash: “INVITE_SPLASH”
- MemberVerificationGateEnabled: “MEMBER_VERIFICATION_GATE_ENABLED”
- MoreStickers: “MORE_STICKERS”
- News: “NEWS”
- Partnered: “PARTNERED”
- PreviewEnabled: “PREVIEW_ENABLED”
- RaidAlertsDisabled: “RAID_ALERTS_DISABLED”
- RoleIcons: “ROLE_ICONS”
- RoleSubscriptionsAvailableForPurchase: “ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE”
- RoleSubscriptionsEnabled: “ROLE_SUBSCRIPTIONS_ENABLED”
- TicketedEventsEnabled: “TICKETED_EVENTS_ENABLED”
- VanityUrl: “VANITY_URL”
- Verified: “VERIFIED”
- VipRegions: “VIP_REGIONS”
- WelcomeScreenEnabled: “WELCOME_SCREEN_ENABLED”
Methods
setName
GuildBuilder : setName () -> Objects.GuildBuilder
name: string
Sets the name of this discord guild.
setVerificationLevel
GuildBuilder : setVerificationLevel () -> Objects.GuildBuilder
verificationLevel: number
Sets the verification level for this guild.
setDefaultMessageNotificationLevel
GuildBuilder : setDefaultMessageNotificationLevel () -> Objects.GuildBuilder
notificationLevel: number
Sets the default message notification level for this guild.
setExplicitContentFilterLevel
GuildBuilder : setExplicitContentFilterLevel () -> Objects.GuildBuilder
notificationLevel: number
Sets the explicit content filter level for this guild.
setAfkChannelId
GuildBuilder : setAfkChannelId () -> Objects.GuildBuilder
channelId: string
Sets the discord Afk Voice Channel for this guild.
setAfkTimeout
GuildBuilder : setAfkTimeout () -> Objects.GuildBuilder
timeout: number
Sets the timeout for members in discord voice channels. Valid inputs are:
- 60
- 300
- 900
- 1800
- 3600
setIcon
GuildBuilder : setIcon () -> Objects.GuildBuilder
imageData: string
Sets the icon of this guild. imageData must be a base64, 1024x1024, encoded binary data for either a png/jpeg/gif
setOwnerId
GuildBuilder : setOwnerId () -> Objects.GuildBuilder
ownerId: string
Sets the owner of this guild.
setSplash
GuildBuilder : setSplash () -> Objects.GuildBuilder
imageData: string
Sets the splash for this guild. imageData must be a 16:9, base64, encoded binary data for either a png/jpeg
setDiscoverySplash
GuildBuilder : setDiscoverySplash () -> Objects.GuildBuilder
imageData: string
Sets the discovery splash for this guild. imageData must be a 16:9, base64, encoded binary data for either a png/jpeg
setSysetBannerstemChannelId
GuildBuilder : setSysetBannerstemChannelId () -> Objects.GuildBuilder
imageData: string
Sets the banner for this guild. imageData must be a 16:9, base64, encoded binary data for either a png/jpeg
setSystemChannelId
GuildBuilder : setSystemChannelId () -> Objects.GuildBuilder
channelId: string
Sets the System Channel for this guild.
setSystemChannelFlags
GuildBuilder : setSystemChannelFlags () -> Objects.GuildBuilder
flags: number
Sets the flags for the System Channel in this guild.
setRulesChannelId
GuildBuilder : setRulesChannelId () -> Objects.GuildBuilder
channelId: string
Sets the rules channel for this guild.
setPublicUpdateChannelId
GuildBuilder : setPublicUpdateChannelId () -> Objects.GuildBuilder
channelId: string
Sets the public update channel for this guild
setPreferredLocale
GuildBuilder : setPreferredLocale () -> Objects.GuildBuilder
locale: string
Sets the preferred locale of this guild
addFeature
GuildBuilder : addFeature () -> Objects.GuildBuilder
feature: string
Enables developers to specify features that are apart of this guild.
setDescription
GuildBuilder : setDescription () -> Objects.GuildBuilder
description: string
Sets the description of this guild
setPremiumProgressBarEnabled
GuildBuilder : setPremiumProgressBarEnabled () -> Objects.GuildBuilder
enabled: boolean
Sets if the Premium Progress bar is enabled
setSafetyAlertsChannelId
GuildBuilder : setSafetyAlertsChannelId () -> Objects.GuildBuilder
channelId: string
Sets the Safety Alert channel id
addRole
GuildBuilder : addRole () -> Objects.GuildBuilder
role: Objects.GuildRoleBuilder
Enables developers to add a Role to a discord Guild channel upon creation.
addChannel
GuildBuilder : addChannel () -> Objects.GuildBuilder
channel: Objects.ChannelBuilder
Enables developers to add a Channel to a discord Guild channel upon creation.
toPayloadObject
GuildBuilder : toPayloadObject () -> Network.Resolvable
Converts the guild to a JSON object that can be sent to the Discord API.
Functions
new
GuildBuilder . new () -> ()
Creates a new instance of GuildBuilder.