Optional
rest: booleanOptional
afkThis guild's afk voice channel.
The ID of this guild's afk voice channel.
The seconds after which voice users will be moved to the afk channel.
Optional
applicationThe application that created this guild, if applicable.
The ID of the application that created this guild, if applicable.
Optional
approximateThe approximate number of members in this guild (if retrieved with counts).
Optional
approximateThe approximate number of non-offline members in this guild (if retrieved with counts).
The cached audit log entries. This requires both the GUILD_MODERATION intent, as well as the VIEW_AUDIT_LOG permission.
The auto moderation rules in this guild.
The hash of this guild's banner.
The channels in this guild.
The default message notifications level of this guild.
The description of this guild.
The discovery splash of this guild. Only present if the guild has the DISCOVERABLE
feature.
The custom emojis of this guild.
The explicit content filter of this guild.
The features this guild has.
The icon hash of this guild.
The integrations in this guild.
The guild's inventory settings.
The cached invites in this guild. This will only be populated by invites created while the client is active.
The date at which this guild was joined.
If this guild is considered large.
Optional
maxThe maximum amount of members this guild can have.
Optional
maxThe maximum amount of people that can be present at a time in this guild. Only present for very large guilds.
Optional
maxThe maximum amount of users that can be present in a stage video channel.
Optional
maxThe maximum amount of users that can be present in a video channel.
The number of members in this guild.
The cached members in this guild.
The required mfa level for moderators of this guild.
The name of this guild.
The nsfw level of this guild.
Optional
ownerThe owner of this guild.
The ID of the owner of this guild.
The preferred locale of this guild.
If this guild has the boost progress bar enabled.
Optional
premiumThe number of nitro boosts this guild has.
The boost level of this guild.
Optional
publicThe channel where notices from Discord are received. Only present in guilds with the COMMUNITY
feature.
The id of the channel where notices from Discord are received. Only present in guilds with the COMMUNITY
feature.
Optional
regionThe region of this guild.
The roles in this guild.
Optional
rulesThe channel where rules/guidelines are displayed. Only present in guilds with the COMMUNITY
feature.
The id of the channel where rules/guidelines are displayed. Only present in guilds with the COMMUNITY
feature.
Optional
safetyThe channel where safety related notices are posted.
The ID if the channel where safety related notices are posted.
The scheduled events in this guild.
The invite splash hash of this guild.
The stage instances in this guild.
The custom stickers of this guild.
Optional
systemThe channel where welcome messages and boosts notices are posted.
The flags for the system channel.
The ID of the channel where welcome messages and boosts notices are posted.
The threads in this guild.
If this guild is unavailable.
The vanity url of this guild. Only present in guilds with the VANITY_URL
feature.
The verification level of this guild.
The voice states of members in voice channels.
Optional
welcomeThe welcome screen configuration. Only present in guilds with the WELCOME_SCREEN_ENABLED
feature.
Optional
widgetThe channel the widget will generate an invite to, or null
if set to no invite.
The id of the channel the widget will generate an invite to, or null
if set to no invite.
Optional
widgetIf the widget is enabled.
The voice adapter creator for this guild that can be used with @discordjs/voice to play audio in voice and stage channels.
Add a member to this guild. Requires an access token with the guilds.join
scope.
Returns the newly added member upon success, or void if the member is already in the guild.
The ID of the user to add.
The options for adding the member.
Begin a prune.
Optional
options: BeginPruneOptionsThe options for the prune.
Ban up to 200 members from this guild. This requires both the BAN_MEMBERS
and MANAGE_GUILD
permissions.
If no members were banned, a FAILED_TO_BAN_USERS will be returned.
The bot user is ignored.
The options for banning.
Create an auto moderation rule for this guild.
The options for the rule.
Create a ban for a user.
The ID of the user.
Optional
options: CreateBanOptionsThe options for creating the ban.
Create a channel in this guild.
The options for creating the channel.
Create an emoji in this guild.
The options for creating the emoji.
Create a role.
Optional
options: CreateRoleOptionsThe options for creating the role.
Create a scheduled event in this guild.
The options for creating the scheduled event.
Create a sticker.
The options for creating the sticker.
Create a guild template.
The options for creating the template.
Create a test entitlement for this guild.
The ID of the SKU to create an entitlement for.
Optional
applicationID: stringThe ID of the application to create the entitlement for. If present, defaults to the logged in client's application id.
Delete a scheduled event.
The ID of the scheduled event.
Optional
reason: stringThe reason for deleting the scheduled event. Discord's docs do not explicitly state a reason can be provided, so it may not be used.
Edit this guild.
The options for editing the guild.
Edit an existing auto moderation rule in this guild.
The ID of the rule to edit.
The options for editing the rule.
Edit the positions of channels in this guild.
The channels to move. Unedited channels do not need to be specified.
Modify the current member in this guild.
The options for editing the member.
Edit the current member's voice state in this guild. channelID
is required, and the current member must already be in that channel. See Discord's docs for more information.
The options for editing the voice state.
Edit an existing emoji in this guild.
The options for editing the emoji.
Edit the incident actions for this guild.
The options for editing the incident actions.
Edit a member of this guild. Use <Guild>.editCurrentMember if you wish to update the nick of this client using the CHANGE_NICKNAME permission.
The ID of the member.
The options for editing the member.
Edit this guild's onboarding configuration.
The options for editing the onboarding configuration.
Edit an existing role.
The options for editing the role.
Edit the position of roles in this guild.
The roles to move.
Optional
reason: stringEdit an existing scheduled event in this guild.
The options for editing the scheduled event.
Edit a sticker.
The options for editing the sticker.
Edit a template.
The code of the template.
The options for editing the template.
Edit a guild member's voice state. channelID
is required, and the user must already be in that channel. See Discord's docs for more information.
The ID of the member.
The options for editing the voice state.
Edit the welcome screen in this guild.
The options for editing the welcome screen.
Edit the widget of this guild.
The options for editing the widget.
Request members from this guild.
Optional
options: RequestGuildMembersOptionsThe options for fetching the members.
Get the active threads in this guild.
Get this guild's audit log.
Optional
options: GetAuditLogOptionsThe options for the audit log.
Get an auto moderation rule for this guild.
The ID of the rule to get.
Get the auto moderation rules for this guild.
Get the bans in this guild.
Optional
options: GetBansOptionsThe options for getting the bans.
Get the channels in a guild. Does not include threads. Only use this if you need to. See the channels
collection.
Get an emoji in this guild.
The ID of the emoji to get.
Get the emojis in this guild.
Get the entitlements for this guild.
Optional
options: Omit<SearchEntitlementsOptions, "guildID">The options for getting the entitlements.
Optional
applicationID: stringThe ID of the application to create the entitlement for. If present, defaults to the logged in client's application id.
Get the integrations in this guild.
Get the invites of this guild.
Get this guild's members. This requires the GUILD_MEMBERS
intent.
Optional
options: GetMembersOptionsThe options for getting the members.
Get the onboarding information for this guild.
Get a preview of this guild.
Get the prune count of this guild.
Optional
options: GetPruneCountOptionsThe options for getting the prune count.
Get a scheduled event.
The ID of the scheduled event to get.
Optional
withUserCount: numberIf the number of users subscribed to the event should be included.
Get the users subscribed to a scheduled event.
The ID of the scheduled event to get the users of.
Optional
options: GetScheduledEventUsersOptionsThe options for getting the users.
Get this guild's scheduled events
Optional
withUserCount: numberIf the number of users subscribed to the event should be included.
Get this guild's templates.
Get the vanity url of this guild.
Get the list of usable voice regions for this guild. This will return VIP servers when the guild is VIP-enabled.
Get the voice state of a member.
The ID of the member. Use @me
for the bot user.
Get the welcome screen for this guild.
Get the widget image of this guild.
Optional
style: WidgetImageStyleThe style of the image.
Get this guild's widget settings.
Join a voice or stage channel.
The options to join the channel with.
Search this guild's members.
Optional
options: MemberSearchOptionsThe options to search with.
If the search should be retried if Discord replies with an index unavailable response. This will retry at most one time, waiting for retry_after
or 15-45 seconds.
Get the permissions of a member. If providing an id, the member must be cached.
The member to get the permissions of.
Search the username & nicknames of members in this guild. See memberSearch for a more detailed search.
The options for the search.
Sync a guild template.
The code of the template to sync.
Static
generateIDStatic
getStatic
get
Represents a Discord server.