declare class GuildsAPI
addRoleToMember) : Promise<void> (
Adds a role to a guild member
banUser) : Promise<void> (
Bans a user from a guild
beginPrune) : Promise<RESTGetAPIGuildPruneCountResult> (
Prunes members in a guild
create) : Promise<discord_api_types_v10.APIGuild> (
Creates a guild
createAutoModerationRule) : Promise<discord_api_types_v10.APIAutoModerationRule> (
Creates a new auto moderation rule for a guild
createChannel) : Promise<discord_api_types_v10.APIChannel> (
Creates a guild channel
createEmoji) : Promise<discord_api_types_v10.APIEmoji> (
Creates a new emoji for a guild
createRole) : Promise<discord_api_types_v10.APIRole> (
Creates a guild role
createScheduledEvent) : Promise<discord_api_types_v10.APIGuildScheduledEvent> (
Creates a new scheduled event for a guild
createStickerguildId: Snowflakedata: Omit<RESTPostAPIGuildStickerFormDataBody, 'file'> & {
file: RawFile;
}reason?: string) : Promise<discord_api_types_v10.APISticker> (
Creates a sticker for a guild
createTemplatetemplateCode: string) : Promise<discord_api_types_v10.APITemplate> (
Creates a new template
Deletes an auto moderation rule for a guild
Deletes an emoji for a guild
Deletes an integration from a guild
Deletes a scheduled event for a guild
Deletes a sticker for a guild
Deletes a template for a guild
edit) : Promise<discord_api_types_v10.APIGuild> (
Edits a guild
editAutoModerationRule) : Promise<RESTPatchAPIAutoModerationRuleJSONBody> (
Edits an auto moderation rule for a guild
editEmoji) : Promise<discord_api_types_v10.APIEmoji> (
Edits an emoji for a guild
editMember) : Promise<discord_api_types_v10.APIGuildMember> (
Edits a guild member
editMFALevel) : Promise<discord_api_types_v10.RESTPostAPIGuildsMFAJSONBody> (
Edits the multi-factor-authentication (MFA) level of a guild
editRole) : Promise<discord_api_types_v10.APIRole> (
Edits a guild role
editScheduledEvent) : Promise<discord_api_types_v10.APIGuildScheduledEvent> (
Edits a scheduled event for a guild
editSticker) : Promise<discord_api_types_v10.APISticker> (
Edits a sticker for a guild
editTemplate) : Promise<discord_api_types_v10.APITemplate> (
Edits a template for a guild
editUserVoiceState) : Promise<void> (
Edits a user's voice state in a guild
editWelcomeScreen) : Promise<discord_api_types_v10.APIGuildWelcomeScreen> (
Edits the welcome screen for a guild
editWidgetSettings) : Promise<discord_api_types_v10.APIGuildWidgetSettings> (
Edits the widget settings for a guild
getguildId: string) : Promise<discord_api_types_v10.APIGuild> (
Fetches a guild
getActiveThreadsguildId: Snowflake) : Promise<discord_api_types_v10.APIThreadList> (
Fetches the active threads in a guild
getAuditLogsguildId: Snowflakeoptions?: RESTGetAPIAuditLogQuery) : Promise<discord_api_types_v10.APIAuditLog> (
Fetches the audit logs for a guild
getAutoModerationRule) : Promise<discord_api_types_v10.APIAutoModerationRule> (
Fetches an auto moderation rule for a guild
getAutoModerationRulesguildId: Snowflake) : Promise<RESTGetAPIAutoModerationRulesResult> (
Fetches all auto moderation rules for a guild
getChannelsguildId: Snowflake) : Promise<RESTGetAPIGuildChannelsResult> (
Fetches a guild's channels
getEmoji) : Promise<discord_api_types_v10.APIEmoji> (
Fetches an emoji for a guild
getEmojisguildId: Snowflake) : Promise<RESTGetAPIGuildEmojisResult> (
Fetches all emojis for a guild
getIntegrationsguildId: Snowflake) : Promise<RESTGetAPIGuildIntegrationsResult> (
Fetches the integrations for a guild
getInvitesguildId: Snowflake) : Promise<RESTGetAPIGuildInvitesResult> (
Fetches the invites for a guild
getMember) : Promise<discord_api_types_v10.APIGuildMember> (
Fetches a guild member
getMemberBansguildId: Snowflake) : Promise<RESTGetAPIGuildBansResult> (
Fetches a guild member ban
getMembersguildId: Snowflakeoptions?: RESTGetAPIGuildMembersQuery) : Promise<discord_api_types_v10.APIGuildMember> (
Fetches all the members of a guild
getPreviewguildId: Snowflake) : Promise<discord_api_types_v10.APIGuildPreview> (
Fetches a guild preview
getPruneCountguildId: Snowflakeoptions?: RESTGetAPIGuildPruneCountQuery) : Promise<RESTGetAPIGuildPruneCountResult> (
Fetch the number of members that can be pruned from a guild
getRolesguildId: Snowflake) : Promise<RESTGetAPIGuildRolesResult> (
Gets all the roles in a guild
getScheduledEvent) : Promise<discord_api_types_v10.APIGuildScheduledEvent> (
Fetches a scheduled event for a guild
getScheduledEventsguildId: Snowflakeoptions?: RESTGetAPIGuildScheduledEventsQuery) : Promise<RESTGetAPIGuildScheduledEventsResult> (
Fetches all scheduled events for a guild
getScheduledEventUsers) : Promise<RESTGetAPIGuildScheduledEventUsersResult> (
Gets all users that are interested in a scheduled event
getSticker) : Promise<discord_api_types_v10.APISticker> (
Fetches a sticker for a guild
getStickersguildId: Snowflake) : Promise<RESTGetAPIGuildStickersResult> (
Fetches all the stickers for a guild
getTemplatetemplateCode: string) : Promise<discord_api_types_v10.APITemplate> (
Fetches a guild template
getTemplatesguildId: Snowflake) : Promise<RESTGetAPIGuildTemplatesResult> (
Fetches all the templates for a guild
getVanityURLguildId: Snowflake) : Promise<RESTGetAPIGuildVanityUrlResult> (
Fetches the vanity url for a guild
getVoiceRegionsguildId: Snowflake) : Promise<RESTGetAPIGuildVoiceRegionsResult> (
Fetches voice regions for a guild
getWelcomeScreenguildId: Snowflake) : Promise<discord_api_types_v10.APIGuildWelcomeScreen> (
Fetches the welcome screen for a guild
getWidgetguildId: Snowflake) : Promise<discord_api_types_v10.APIGuildWidget> (
Fetches the widget for a guild
getWidgetImageguildId: Snowflakestyle?: GuildWidgetStyle) : Promise<ArrayBuffer> (
Fetches the widget image for a guild
getWidgetSettingsguildId: Snowflake) : Promise<ArrayBuffer> (
Fetches the widget settings for a guild
removeRoleFromMember) : Promise<void> (
Removes a role from a guild member
searchForMembersguildId: Snowflake) : Promise<RESTGetAPIGuildMembersSearchResult> (
Searches for guild members
setChannelPositions) : Promise<void> (
Edits a guild channel's positions
setRolePositions) : Promise<RESTPatchAPIGuildRolePositionsResult> (
Sets role positions in a guild
syncTemplate) : Promise<discord_api_types_v10.APITemplate> (
Syncs a template for a guild