declare class GuildsAPI
addRoleToMember) : Promise<void> (
Adds a role to a guild member
See also: https://discord.com/developers/docs/resources/guild#add-guild-member-role
banUser) : Promise<void> (
Bans a user from a guild
See also: https://discord.com/developers/docs/resources/guild#create-guild-ban
beginPrune) : Promise<RESTGetAPIGuildPruneCountResult> (
Prunes members in a guild
See also: https://discord.com/developers/docs/resources/guild#begin-guild-prune
create) : Promise<discord_api_types_v10.APIGuild> (
Creates a guild
See also: https://discord.com/developers/docs/resources/guild#create-guild
createAutoModerationRule) : Promise<discord_api_types_v10.APIAutoModerationRule> (
Creates a new auto moderation rule for a guild
See also: https://discord.com/developers/docs/resources/auto-moderation#create-auto-moderation-rule
createChannel) : Promise<discord_api_types_v10.APIChannel> (
Creates a guild channel
See also: https://discord.com/developers/docs/resources/guild#create-guild-channel
createEmoji) : Promise<discord_api_types_v10.APIEmoji> (
Creates a new emoji for a guild
See also: https://discord.com/developers/docs/resources/emoji#create-guild-emoji
createRole) : Promise<discord_api_types_v10.APIRole> (
Creates a guild role
See also: https://discord.com/developers/docs/resources/guild#create-guild-role
createScheduledEvent) : Promise<discord_api_types_v10.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: Snowflakedata: Omit<RESTPostAPIGuildStickerFormDataBody, 'file'> & {
file: RawFile;
}reason?: string) : Promise<discord_api_types_v10.APISticker> (
Creates a sticker for a guild
See also: https://discord.com/developers/docs/resources/sticker#create-guild-sticker
createTemplatetemplateCode: string) : Promise<discord_api_types_v10.APITemplate> (
Creates a new template
See also: https://discord.com/developers/docs/resources/guild-template#create-guild-template
Deletes a guild
See also: https://discord.com/developers/docs/resources/guild#delete-guild
Deletes an auto moderation rule for a guild
See also: https://discord.com/developers/docs/resources/auto-moderation#delete-auto-moderation-rule
Deletes an emoji for a guild
See also: https://discord.com/developers/docs/resources/emoji#delete-guild-emoji
Deletes an integration from a guild
See also: https://discord.com/developers/docs/resources/guild#delete-guild-integration
Deletes a guild role
See also: https://discord.com/developers/docs/resources/guild#delete-guild-role
Deletes a scheduled event for a guild
See also: https://discord.com/developers/docs/resources/guild-scheduled-event#delete-guild-scheduled-event
Deletes a sticker for a guild
See also: https://discord.com/developers/docs/resources/sticker#delete-guild-sticker
Deletes a template for a guild
See also: https://discord.com/developers/docs/resources/guild-template#delete-guild-template
edit) : Promise<discord_api_types_v10.APIGuild> (
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<discord_api_types_v10.APIEmoji> (
Edits an emoji for a guild
See also: https://discord.com/developers/docs/resources/emoji#modify-guild-emoji
editMember) : Promise<discord_api_types_v10.APIGuildMember> (
Edits a guild member
See also: https://discord.com/developers/docs/resources/guild#modify-guild-member
editMFALevel) : Promise<discord_api_types_v10.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<discord_api_types_v10.APIRole> (
Edits a guild role
See also: https://discord.com/developers/docs/resources/guild#modify-guild-role
editScheduledEvent) : Promise<discord_api_types_v10.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<discord_api_types_v10.APISticker> (
Edits a sticker for a guild
See also: https://discord.com/developers/docs/resources/sticker#modify-guild-sticker
editTemplate) : Promise<discord_api_types_v10.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
editWelcomeScreen) : Promise<discord_api_types_v10.APIGuildWelcomeScreen> (
Edits the welcome screen for a guild
See also: https://discord.com/developers/docs/resources/guild#modify-guild-welcome-screen
editWidgetSettings) : Promise<discord_api_types_v10.APIGuildWidgetSettings> (
Edits the widget settings for a guild
See also: https://discord.com/developers/docs/resources/guild#modify-guild-widget
getguildId: string) : Promise<discord_api_types_v10.APIGuild> (
Fetches a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild
getActiveThreadsguildId: Snowflake) : Promise<discord_api_types_v10.APIThreadList> (
Fetches the active threads in a guild
See also: https://discord.com/developers/docs/resources/guild#list-active-guild-threads
getAuditLogsguildId: Snowflakeoptions?: RESTGetAPIAuditLogQuery) : Promise<discord_api_types_v10.APIAuditLog> (
Fetches the audit logs for a guild
See also: https://discord.com/developers/docs/resources/audit-log#get-guild-audit-log
getAutoModerationRule) : Promise<discord_api_types_v10.APIAutoModerationRule> (
Fetches an auto moderation rule for a guild
See also: https://discord.com/developers/docs/resources/auto-moderation#get-auto-moderation-rule
getAutoModerationRulesguildId: Snowflake) : 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: Snowflake) : Promise<RESTGetAPIGuildChannelsResult> (
Fetches a guild's channels
See also: https://discord.com/developers/docs/resources/guild#get-guild-channels
getEmoji) : Promise<discord_api_types_v10.APIEmoji> (
Fetches an emoji for a guild
See also: https://discord.com/developers/docs/resources/emoji#get-guild-emoji
getEmojisguildId: Snowflake) : Promise<RESTGetAPIGuildEmojisResult> (
Fetches all emojis for a guild
See also: https://discord.com/developers/docs/resources/emoji#list-guild-emojis
getIntegrationsguildId: Snowflake) : Promise<RESTGetAPIGuildIntegrationsResult> (
Fetches the integrations for a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-integrations
getInvitesguildId: Snowflake) : Promise<RESTGetAPIGuildInvitesResult> (
Fetches the invites for a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-invites
getMember) : Promise<discord_api_types_v10.APIGuildMember> (
Fetches a guild member
See also: https://discord.com/developers/docs/resources/guild#get-guild-member
getMemberBansguildId: Snowflake) : Promise<RESTGetAPIGuildBansResult> (
Fetches a guild member ban
See also: https://discord.com/developers/docs/resources/guild#get-guild-bans
getMembersguildId: Snowflakeoptions?: RESTGetAPIGuildMembersQuery) : Promise<discord_api_types_v10.APIGuildMember> (
Fetches all the members of a guild
See also: https://discord.com/developers/docs/resources/guild#list-guild-members
getPreviewguildId: Snowflake) : Promise<discord_api_types_v10.APIGuildPreview> (
Fetches a guild preview
See also: https://discord.com/developers/docs/resources/guild#get-guild-preview
getPruneCountguildId: Snowflakeoptions?: RESTGetAPIGuildPruneCountQuery) : 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: Snowflake) : Promise<RESTGetAPIGuildRolesResult> (
Gets all the roles in a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-roles
getScheduledEvent) : Promise<discord_api_types_v10.APIGuildScheduledEvent> (
Fetches a scheduled event for a guild
See also: https://discord.com/developers/docs/resources/guild-scheduled-event#get-guild-scheduled-event
getScheduledEventsguildId: Snowflakeoptions?: RESTGetAPIGuildScheduledEventsQuery) : 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<discord_api_types_v10.APISticker> (
Fetches a sticker for a guild
See also: https://discord.com/developers/docs/resources/sticker#get-guild-sticker
getStickersguildId: Snowflake) : Promise<RESTGetAPIGuildStickersResult> (
Fetches all the stickers for a guild
See also: https://discord.com/developers/docs/resources/sticker#list-guild-stickers
getTemplatetemplateCode: string) : Promise<discord_api_types_v10.APITemplate> (
Fetches a guild template
See also: https://discord.com/developers/docs/resources/guild-template#get-guild-template
getTemplatesguildId: Snowflake) : Promise<RESTGetAPIGuildTemplatesResult> (
Fetches all the templates for a guild
See also: https://discord.com/developers/docs/resources/guild-template#get-guild-templates
getVanityURLguildId: Snowflake) : Promise<RESTGetAPIGuildVanityUrlResult> (
Fetches the vanity url for a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-vanity-url
getVoiceRegionsguildId: Snowflake) : Promise<RESTGetAPIGuildVoiceRegionsResult> (
Fetches voice regions for a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-voice-regions
getWelcomeScreenguildId: Snowflake) : Promise<discord_api_types_v10.APIGuildWelcomeScreen> (
Fetches the welcome screen for a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-welcome-screen
getWidgetguildId: Snowflake) : Promise<discord_api_types_v10.APIGuildWidget> (
Fetches the widget for a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-widget
getWidgetImageguildId: Snowflakestyle?: GuildWidgetStyle) : Promise<ArrayBuffer> (
Fetches the widget image for a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-widget-image
getWidgetSettingsguildId: Snowflake) : Promise<ArrayBuffer> (
Fetches the widget settings for a guild
See also: https://discord.com/developers/docs/resources/guild#get-guild-widget-settings
removeRoleFromMember) : Promise<void> (
Removes a role from a guild member
See also: https://discord.com/developers/docs/resources/guild#remove-guild-member-role
searchForMembersguildId: Snowflake) : Promise<RESTGetAPIGuildMembersSearchResult> (
Searches for guild members
See also: https://discord.com/developers/docs/resources/guild#search-guild-members
setChannelPositions) : Promise<void> (
Edits a guild channel's positions
See also: https://discord.com/developers/docs/resources/guild#modify-guild-channel-positions
setRolePositions) : Promise<RESTPatchAPIGuildRolePositionsResult> (
Sets role positions in a guild
See also: https://discord.com/developers/docs/resources/guild#modify-guild-role-positions
syncTemplate) : Promise<discord_api_types_v10.APITemplate> (
Syncs a template for a guild
See also: https://discord.com/developers/docs/resources/guild-template#sync-guild-template
Unbans a user from a guild
See also: https://discord.com/developers/docs/resources/guild#remove-guild-ban