Skip to content

Commit

Permalink
process deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC committed Jan 20, 2024
1 parent 903b364 commit 4e71ef6
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 89 deletions.
12 changes: 0 additions & 12 deletions lib/routes/Channels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1209,18 +1209,6 @@ export default class Channels {
}).then(data => this.#manager.client.util.updateThread<PublicThreadChannel>(data));
}

/**
* Create a thread in a thread only channel (forum & media).
* @param channelID The ID of the channel to start the thread in.
* @param options The options for starting the thread.
* @caching This method **may** cache its result. The result will not be cached if the guild is not cached.
* @caches {@link Guild#threads | Guild#threads}
* @deprecated Use {@link REST/Channels#startThreadInThreadOnlyChannel}. This will be removed in `1.9.0`.
*/
async startThreadInThreadOnlyChannl(channelID: string, options: StartThreadInThreadOnlyChannelOptions): Promise<PublicThreadChannel> {
return this.startThreadInThreadOnlyChannel(channelID, options);
}

/**
* Create a thread without an existing message.
* @param channelID The ID of the channel to start the thread in.
Expand Down
9 changes: 0 additions & 9 deletions lib/routes/Miscellaneous.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,6 @@ export default class Miscellaneous {
}).then(data => data.map(d => "subscription_id" in d && d.subscription_id ? new Entitlement(d, this.#manager.client) : new TestEntitlement(d, this.#manager.client)));
}

/**
* Get the nitro sticker packs.
* @deprecated Use {@link REST/Miscellaneous#getStickerPacks | getStickerPacks}. This will be removed in `1.9.0`.
* @caching This method **does not** cache its result.
*/
async getNitroStickerPacks(): Promise<Array<StickerPack>> {
return this.getStickerPacks();
}

/**
* Get the SKUs for an application.
* @param applicationID The ID of the application to get the SKUs of.
Expand Down
2 changes: 0 additions & 2 deletions lib/util/Routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,6 @@ export const GATEWAY_BOT = "/gateway/bot" as const;
export const USER = (userID: string) => `/users/${userID}` as const;
export const MESSAGE_LINK = (guildID: string, channelID: string, messageID: string) => `/channels/${guildID}/${channelID}/${messageID}` as const;
export const STICKER_PACKS = "/sticker-packs" as const;
/** @deprecated Use {@link Routes~STICKER_PACKS | STICKER_PACKS}. This will be removed in `1.9.0`. */
export const NITRO_STICKER_PATHS = STICKER_PACKS;
export const INVITE = (code: string) => `/invites/${code}` as const;
export const STAGE_INSTANCES = "/stage-instances" as const;
export const STAGE_INSTANCE = (channelID: string) => `/stage-instances/${channelID}` as const;
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@
"devDependencies": {
"@favware/npm-deprecate": "^1.0.7",
"@mxssfd/typedoc-theme": "^1.1.3",
"@types/node": "^20.11.0",
"@types/node": "^20.11.5",
"@types/pako": "^2.0.3",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"eslint": "^8.56.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-import-newlines": "^1.3.4",
Expand All @@ -60,10 +60,10 @@
"rimraf": "^5.0.5",
"typedoc": "^0.25.7",
"typedoc-plugin-extras": "3.0.0",
"typedoc-plugin-mdn-links": "^3.1.11",
"typedoc-plugin-mdn-links": "^3.1.12",
"typedoc-plugin-merge-modules": "^5.1.0",
"typescript": "^5.3.3",
"undici-types": "^6.3.0"
"undici-types": "^6.4.0"
},
"dependencies": {
"tslib": "^2.6.2",
Expand Down
122 changes: 61 additions & 61 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4e71ef6

Please sign in to comment.