Skip to content

Commit

Permalink
Process deprecations
Browse files Browse the repository at this point in the history
* removal of `VisibilityTypes`
* removal of `Intents#GUILD_BANS`
* removal of `OAuth#updateRoleConnectionsMetata`
* removal of `ClientApplication#updateRoleConnectionsMetata`
  • Loading branch information
DonovanDMC committed Apr 5, 2023
1 parent 2b3a8fd commit bbb3198
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
9 changes: 1 addition & 8 deletions lib/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand All @@ -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 |
Expand Down
1 change: 1 addition & 0 deletions lib/routes/Guilds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 0 additions & 5 deletions lib/routes/OAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 0 additions & 5 deletions lib/structures/ClientApplication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bbb3198

Please sign in to comment.