export declare class GuildsAPI
addRoleToMemberguildId: SnowflakeuserId: SnowflakeroleId: Snowflakeoptions?: Pick<RequestData, 'reason' | 'signal'>) : Promise<void> (
Adds a role to a guild member
See also: https://discord.com/developers/docs/resources/guild#add-guild-member-role
banUserguildId: SnowflakeuserId: Snowflakebody?: RESTPutAPIGuildBanJSONBodyoptions?: Pick<RequestData, 'reason' | 'signal'>) : Promise<void> (
Bans a user from a guild
See also: https://discord.com/developers/docs/resources/guild#create-guild-ban
beginPruneguildId: Snowflakeoptions?: Pick<RequestData, 'reason' | 'signal'>) : Promise<RESTGetAPIGuildPruneCountResult> (
Prunes members in a guild
See also: https://discord.com/developers/docs/resources/guild#begin-guild-prune
createoptions?: Pick<RequestData, 'signal'>) : Promise<APIGuild> (
Creates a guild
See also: https://discord.com/developers/docs/resources/guild#create-guild
createAutoModerationRuleguildId: Snowflakeoptions?: Pick<RequestData, 'reason' | 'signal'>) : Promise<APIAutoModerationRule> (
Creates a new auto moderation rule for a guild
See also: https://discord.com/developers/docs/resources/auto-moderation#create-auto-moderation-rule
createChannelguildId: Snowflakeoptions?: Pick<RequestData, 'reason' | 'signal'>) : Promise<APIChannel> (
Creates a guild channel
See also: https://discord.com/developers/docs/resources/guild#create-guild-channel
createEmojiguildId: Snowflakeoptions?: Pick<RequestData, 'reason' | 'signal'>) : Promise<APIEmoji> (
Creates a new emoji for a guild
See also: https://discord.com/developers/docs/resources/emoji#create-guild-emoji
createRoleguildId: Snowflakeoptions?: Pick<RequestData, 'reason' | 'signal'>) : Promise<APIRole> (
Creates a guild role
See also: https://discord.com/developers/docs/resources/guild#create-guild-role
createScheduledEventguildId: Snowflakeoptions?: Pick<RequestData, 'reason' | 'signal'>) : Promise<APIGuildScheduledEvent> (
Creates a new scheduled event for a guild
See also: https://discord.com/developers/docs/resources/guild-scheduled-event#create-guild-scheduled-event
createStickerguildId: Snowflakebody: Omit<RESTPostAPIGuildStickerFormDataBody, 'file'> & {
file: RawFile;
}options?: Pick<RequestData, 'reason' | 'signal'>) : Promise<APISticker> (
Creates a sticker for a guild
See also: https://discord.com/developers/docs/resources/sticker#create-guild-sticker
createTemplatetemplateCode: stringoptions?: Pick<RequestData, 'signal'>) : Promise<APITemplate> (
Creates a new template
See also: https://discord.com/developers/docs/resources/guild-template#create-guild-template
deleteguildId: Snowflakeoptions?: Pick<RequestData, 'reason' | 'signal'>) : Promise<void> (
Deletes a guild
See also: https://discord.com/developers/docs/resources/guild#delete-guild
deleteAutoModerationRule) : Promise<void> (
Deletes an auto moderation rule for a guild
See also: https://discord.com/developers/docs/resources/auto-moderation#delete-auto-moderation-rule
deleteEmoji) : Promise<void> (
Deletes an emoji for a guild
See also: https://discord.com/developers/docs/resources/emoji#delete-guild-emoji
deleteIntegration) : Promise<void> (
Deletes an integration from a guild
See also: https://discord.com/developers/docs/resources/guild#delete-guild-integration
deleteRole) : Promise<void> (
Deletes a guild role
See also: https://discord.com/developers/docs/resources/guild#delete-guild-role
deleteScheduledEvent) : Promise<void> (
Deletes a scheduled event for a guild
See also: https://discord.com/developers/docs/resources/guild-scheduled-event#delete-guild-scheduled-event
deleteSticker) : Promise<void> (
Deletes a sticker for a guild
See also: https://discord.com/developers/docs/resources/sticker#delete-guild-sticker
deleteTemplate) : Promise<void> (
Deletes a template for a guild
See also: https://discord.com/developers/docs/resources/guild-template#delete-guild-template
Edits a guild
See also: https://discord.com/developers/docs/resources/guild#modify-guild
editAutoModerationRule) : Promise<RESTPatchAPIAutoModerationRuleJSONBody> (
Edits an auto moderation rule for a guild
See also: https://discord.com/developers/docs/resources/auto-moderation#modify-auto-moderation-rule
editEmoji) : Promise<APIEmoji> (
Edits an emoji for a guild
See also: https://discord.com/developers/docs/resources/emoji#modify-guild-emoji
editMember) : Promise<APIGuildMember> (
Edits a guild member
See also: https://discord.com/developers/docs/resources/guild#modify-guild-member
editMFALevel) : Promise<RESTPostAPIGuildsMFAJSONBody> (
Edits the multi-factor-authentication (MFA) level of a guild
See also: https://discord.com/developers/docs/resources/guild#modify-guild-mfa-level
editRole) : Promise<APIRole> (
Edits a guild role
See also: https://discord.com/developers/docs/resources/guild#modify-guild-role
editScheduledEvent) : Promise<APIGuildScheduledEvent> (
Edits a scheduled event for a guild
See also: https://discord.com/developers/docs/resources/guild-scheduled-event#modify-guild-scheduled-event
editSticker) : Promise<APISticker> (
Edits a sticker for a guild
See also: https://discord.com/developers/docs/resources/sticker#modify-guild-sticker
editTemplate) : Promise<APITemplate> (
Edits a template for a guild
See also: https://discord.com/developers/docs/resources/guild-template#modify-guild-template
editUserVoiceState) : Promise<void> (
Edits a user's voice state in a guild
See also: https://discord.com/developers/docs/resources/guild#modify-user-voice-state
editWelcomeScreenguildId: Snowflakeoptions?: Pick<RequestData, 'reason' | 'signal'>) : Promise<APIGuildWelcomeScreen> (
Edits the welcome screen for a guild
See also: https://discord.com/developers/docs/resources/guild#modify-guild-welcome-screen
editWidgetSettingsguildId: Snowflakeoptions?: Pick<RequestData, 'reason' | 'signal'>) : Promise<APIGuildWidgetSettings> (
Edits the widget settings for a guild
See also: https://discord.com/developers/docs/resources/guild#modify-guild-widget
getguildId: stringoptions?: Pick<RequestData, 'signal'>) : Promise<APIGuild> (
Fetches a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild
getActiveThreadsguildId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<APIThreadList> (
Fetches the active threads in a guild
See also: https://discord.com/developers/docs/resources/guild#list-active-guild-threads
getAuditLogs) : Promise<APIAuditLog> (
Fetches the audit logs for a guild
See also: https://discord.com/developers/docs/resources/audit-log#get-guild-audit-log
getAutoModerationRule) : Promise<APIAutoModerationRule> (
Fetches an auto moderation rule for a guild
See also: https://discord.com/developers/docs/resources/auto-moderation#get-auto-moderation-rule
getAutoModerationRulesguildId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<RESTGetAPIAutoModerationRulesResult> (
Fetches all auto moderation rules for a guild
See also: https://discord.com/developers/docs/resources/auto-moderation#list-auto-moderation-rules-for-guild
getChannelsguildId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<RESTGetAPIGuildChannelsResult> (
Fetches a guild's channels
See also: https://discord.com/developers/docs/resources/guild#get-guild-channels
Fetches an emoji for a guild
See also: https://discord.com/developers/docs/resources/emoji#get-guild-emoji
getEmojisguildId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<RESTGetAPIGuildEmojisResult> (
Fetches all emojis for a guild
See also: https://discord.com/developers/docs/resources/emoji#list-guild-emojis
getIntegrationsguildId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<RESTGetAPIGuildIntegrationsResult> (
Fetches the integrations for a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-integrations
getInvitesguildId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<RESTGetAPIGuildInvitesResult> (
Fetches the invites for a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-invites
getMember) : Promise<APIGuildMember> (
Fetches a guild member
See also: https://discord.com/developers/docs/resources/guild#get-guild-member
getMemberBansguildId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<RESTGetAPIGuildBansResult> (
Fetches a guild member ban
See also: https://discord.com/developers/docs/resources/guild#get-guild-bans
getMembers) : Promise<RESTGetAPIGuildMembersResult> (
Fetches all the members of a guild
See also: https://discord.com/developers/docs/resources/guild#list-guild-members
getPreviewguildId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<APIGuildPreview> (
Fetches a guild preview
See also: https://discord.com/developers/docs/resources/guild#get-guild-preview
getPruneCount) : Promise<RESTGetAPIGuildPruneCountResult> (
Fetch the number of members that can be pruned from a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-prune-count
getRolesguildId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<RESTGetAPIGuildRolesResult> (
Gets all the roles in a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-roles
getScheduledEvent) : Promise<APIGuildScheduledEvent> (
Fetches a scheduled event for a guild
See also: https://discord.com/developers/docs/resources/guild-scheduled-event#get-guild-scheduled-event
getScheduledEvents) : Promise<RESTGetAPIGuildScheduledEventsResult> (
Fetches all scheduled events for a guild
See also: https://discord.com/developers/docs/resources/guild-scheduled-event#list-scheduled-events-for-guild
getScheduledEventUsers) : Promise<RESTGetAPIGuildScheduledEventUsersResult> (
Gets all users that are interested in a scheduled event
See also: https://discord.com/developers/docs/resources/guild-scheduled-event#get-guild-scheduled-event-users
getSticker) : Promise<APISticker> (
Fetches a sticker for a guild
See also: https://discord.com/developers/docs/resources/sticker#get-guild-sticker
getStickersguildId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<RESTGetAPIGuildStickersResult> (
Fetches all the stickers for a guild
See also: https://discord.com/developers/docs/resources/sticker#list-guild-stickers
getTemplatetemplateCode: stringoptions?: Pick<RequestData, 'signal'>) : Promise<APITemplate> (
Fetches a guild template
See also: https://discord.com/developers/docs/resources/guild-template#get-guild-template
getTemplatesguildId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<RESTGetAPIGuildTemplatesResult> (
Fetches all the templates for a guild
See also: https://discord.com/developers/docs/resources/guild-template#get-guild-templates
getVanityURLguildId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<RESTGetAPIGuildVanityUrlResult> (
Fetches the vanity url for a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-vanity-url
getVoiceRegionsguildId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<RESTGetAPIGuildVoiceRegionsResult> (
Fetches voice regions for a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-voice-regions
getWebhooksid: Snowflake) : Promise<RESTGetAPIGuildWebhooksResult> (
Fetches webhooks for a guild
See also: https://discord.com/developers/docs/resources/webhook#get-guild-webhooks
getWelcomeScreenguildId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<APIGuildWelcomeScreen> (
Fetches the welcome screen for a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-welcome-screen
getWidgetguildId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<APIGuildWidget> (
Fetches the widget for a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-widget
getWidgetImage) : Promise<ArrayBuffer> (
Fetches the widget image for a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-widget-image
getWidgetSettingsguildId: Snowflakeoptions?: Pick<RequestData, 'signal'>) : Promise<ArrayBuffer> (
Fetches the widget settings for a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-widget-settings
removeRoleFromMemberguildId: SnowflakeuserId: SnowflakeroleId: Snowflakeoptions?: Pick<RequestData, 'reason' | 'signal'>) : Promise<void> (
Removes a role from a guild member
See also: https://discord.com/developers/docs/resources/guild#remove-guild-member-role
searchForMembers) : Promise<RESTGetAPIGuildMembersSearchResult> (
Searches for guild members
See also: https://discord.com/developers/docs/resources/guild#search-guild-members
setChannelPositionsguildId: Snowflakeoptions?: Pick<RequestData, 'reason' | 'signal'>) : Promise<void> (
Edits a guild channel's positions
See also: https://discord.com/developers/docs/resources/guild#modify-guild-channel-positions
setRolePositionsguildId: Snowflakeoptions?: Pick<RequestData, 'reason' | 'signal'>) : Promise<RESTPatchAPIGuildRolePositionsResult> (
Sets role positions in a guild
See also: https://discord.com/developers/docs/resources/guild#modify-guild-role-positions
Sets the voice state for the current user
See also: https://discord.com/developers/docs/resources/guild#modify-current-user-voice-state
syncTemplate) : Promise<APITemplate> (
Syncs a template for a guild
See also: https://discord.com/developers/docs/resources/guild-template#sync-guild-template
unbanUser) : Promise<void> (
Unbans a user from a guild
See also: https://discord.com/developers/docs/resources/guild#remove-guild-ban