From bbb31988b65465ee3bebc6a494b83afb8b010711 Mon Sep 17 00:00:00 2001 From: Donovan Daniels Date: Tue, 4 Apr 2023 19:03:48 -0500 Subject: [PATCH] Process deprecations * removal of `VisibilityTypes` * removal of `Intents#GUILD_BANS` * removal of `OAuth#updateRoleConnectionsMetata` * removal of `ClientApplication#updateRoleConnectionsMetata` --- lib/Constants.ts | 9 +-------- lib/routes/Guilds.ts | 1 + lib/routes/OAuth.ts | 5 ----- lib/structures/ClientApplication.ts | 5 ----- 4 files changed, 2 insertions(+), 18 deletions(-) diff --git a/lib/Constants.ts b/lib/Constants.ts index d6c3d13a..7384e319 100644 --- a/lib/Constants.ts +++ b/lib/Constants.ts @@ -296,9 +296,6 @@ export enum ConnectionVisibilityTypes { EVERYONE = 1, } -/** @deprecated Use {@link Constants~ConnectionVisibilityTypes | ConnectionVisibilityTypes}. This will be removed in `1.6.0`. */ -export const VisibilityTypes = ConnectionVisibilityTypes; - export const ConnectionServices = [ "battlenet", "ebay", @@ -813,11 +810,7 @@ export enum InteractionResponseTypes { export enum Intents { GUILDS = 1 << 0, GUILD_MEMBERS = 1 << 1, - /** @deprecated Use {@link Constants~Intents.GUILD_MODERATION | GUILD_MODERATION}. This will be removed in `1.6.0`. */ - GUILD_BANS = 1 << 2, GUILD_MODERATION = 1 << 2, - GUILD_EXPRESSIONS = 1 << 3, - /** @deprecated Use {@link Constants~Intents.GUILD_EXPRESSIONS | GUILD_EXPRESSIONS}. This will be removed in `1.8.0`. */ GUILD_EMOJIS_AND_STICKERS = 1 << 3, GUILD_INTEGRATIONS = 1 << 4, GUILD_WEBHOOKS = 1 << 5, @@ -840,7 +833,7 @@ export type IntentNames = keyof typeof Intents; export const AllNonPrivilegedIntents = Intents.GUILDS | - Intents.GUILD_BANS | + Intents.GUILD_MODERATION | Intents.GUILD_EMOJIS_AND_STICKERS | Intents.GUILD_INTEGRATIONS | Intents.GUILD_WEBHOOKS | diff --git a/lib/routes/Guilds.ts b/lib/routes/Guilds.ts index b8f24736..b834cb5a 100644 --- a/lib/routes/Guilds.ts +++ b/lib/routes/Guilds.ts @@ -597,6 +597,7 @@ export default class Guilds { public_updates_channel_id: options.publicUpdatesChannelID, region: options.region, rules_channel_id: options.rulesChannelID, + safety_alerts_channel_id: options.safetyAlertsChannelID, splash: options.splash, system_channel_flags: options.systemChannelFlags, system_channel_id: options.systemChannelID, diff --git a/lib/routes/OAuth.ts b/lib/routes/OAuth.ts index c30bb7cf..d3b733f2 100644 --- a/lib/routes/OAuth.ts +++ b/lib/routes/OAuth.ts @@ -42,11 +42,6 @@ export default class OAuth { this.#manager = manager; } - /** An alias for {@link Routes/OAuth~OAuth.updateRoleConnectionsMetadata | OAuth#updateRoleConnectionsMetadata}. This will be removed in `1.6.0`. */ - get updateRoleConnectionsMetata(): OAuth["updateRoleConnectionsMetadata"] { - return this.updateRoleConnectionsMetadata.bind(this); - } - /** * Get an access token for the application owner. If the application is owned by a team, this is restricted to `identify` & `applications.commands.update`. * @param options The options to for the client credentials grant. diff --git a/lib/structures/ClientApplication.ts b/lib/structures/ClientApplication.ts index e7dcd628..1cb2f2be 100644 --- a/lib/structures/ClientApplication.ts +++ b/lib/structures/ClientApplication.ts @@ -33,11 +33,6 @@ export default class ClientApplication extends Base { } } - /** An alias for {@link ClientApplication~ClientApplication.updateRoleConnectionsMetadata | ClientApplication#updateRoleConnectionsMetadata}. This will be removed in `1.6.0`. */ - get updateRoleConnectionsMetata(): ClientApplication["updateRoleConnectionsMetadata"] { - return this.updateRoleConnectionsMetadata.bind(this); - } - /** * Overwrite all existing global application commands. * @param options The commands.