diff --git a/deno/payloads/v10/sticker.ts b/deno/payloads/v10/sticker.ts index 86766582..a5e5b918 100644 --- a/deno/payloads/v10/sticker.ts +++ b/deno/payloads/v10/sticker.ts @@ -70,7 +70,7 @@ export interface APISticker { */ export enum StickerType { /** - * An official sticker in a pack, part of Nitro or in a removed purchasable pack + * An official sticker in a pack */ Standard = 1, /** diff --git a/deno/payloads/v9/sticker.ts b/deno/payloads/v9/sticker.ts index 86766582..a5e5b918 100644 --- a/deno/payloads/v9/sticker.ts +++ b/deno/payloads/v9/sticker.ts @@ -70,7 +70,7 @@ export interface APISticker { */ export enum StickerType { /** - * An official sticker in a pack, part of Nitro or in a removed purchasable pack + * An official sticker in a pack */ Standard = 1, /** diff --git a/deno/rest/v10/mod.ts b/deno/rest/v10/mod.ts index a8eac292..6c7bfe8d 100644 --- a/deno/rest/v10/mod.ts +++ b/deno/rest/v10/mod.ts @@ -830,6 +830,16 @@ export const Routes = { * Route for: * - GET `/sticker-packs` */ + stickerPacks() { + return '/sticker-packs' as const; + }, + + /** + * Route for: + * - GET `/sticker-packs` + * + * @deprecated Use {@link Routes.stickerPacks} instead. + */ nitroStickerPacks() { return '/sticker-packs' as const; }, diff --git a/deno/rest/v10/sticker.ts b/deno/rest/v10/sticker.ts index ba4c921d..b8e9c615 100644 --- a/deno/rest/v10/sticker.ts +++ b/deno/rest/v10/sticker.ts @@ -6,12 +6,19 @@ import type { APISticker, APIStickerPack } from '../../payloads/v10/mod.ts'; export type RESTGetAPIStickerResult = APISticker; /** - * https://discord.com/developers/docs/resources/sticker#list-nitro-sticker-packs + * https://discord.com/developers/docs/resources/sticker#list-sticker-packs */ -export interface RESTGetNitroStickerPacksResult { +export interface RESTGetStickerPacksResult { sticker_packs: APIStickerPack[]; } +/** + * https://discord.com/developers/docs/resources/sticker#list-sticker-packs + * + * @deprecated Use `RESTGetStickerPacksResult` instead + */ +export type RESTGetNitroStickerPacksResult = RESTGetStickerPacksResult; + /** * https://discord.com/developers/docs/resources/sticker#list-guild-stickers */ diff --git a/deno/rest/v9/mod.ts b/deno/rest/v9/mod.ts index 9800a890..e4465fc5 100644 --- a/deno/rest/v9/mod.ts +++ b/deno/rest/v9/mod.ts @@ -839,6 +839,16 @@ export const Routes = { * Route for: * - GET `/sticker-packs` */ + stickerPacks() { + return '/sticker-packs' as const; + }, + + /** + * Route for: + * - GET `/sticker-packs` + * + * @deprecated Use {@link Routes.stickerPacks} instead. + */ nitroStickerPacks() { return '/sticker-packs' as const; }, diff --git a/deno/rest/v9/sticker.ts b/deno/rest/v9/sticker.ts index ab9f9b3e..6ca28f2d 100644 --- a/deno/rest/v9/sticker.ts +++ b/deno/rest/v9/sticker.ts @@ -6,12 +6,19 @@ import type { APISticker, APIStickerPack } from '../../payloads/v9/mod.ts'; export type RESTGetAPIStickerResult = APISticker; /** - * https://discord.com/developers/docs/resources/sticker#list-nitro-sticker-packs + * https://discord.com/developers/docs/resources/sticker#list-sticker-packs */ -export interface RESTGetNitroStickerPacksResult { +export interface RESTGetStickerPacksResult { sticker_packs: APIStickerPack[]; } +/** + * https://discord.com/developers/docs/resources/sticker#list-sticker-packs + * + * @deprecated Use `RESTGetStickerPacksResult` instead + */ +export type RESTGetNitroStickerPacksResult = RESTGetStickerPacksResult; + /** * https://discord.com/developers/docs/resources/sticker#list-guild-stickers */ diff --git a/payloads/v10/sticker.ts b/payloads/v10/sticker.ts index 60caa5f4..fc83bd20 100644 --- a/payloads/v10/sticker.ts +++ b/payloads/v10/sticker.ts @@ -70,7 +70,7 @@ export interface APISticker { */ export enum StickerType { /** - * An official sticker in a pack, part of Nitro or in a removed purchasable pack + * An official sticker in a pack */ Standard = 1, /** diff --git a/payloads/v9/sticker.ts b/payloads/v9/sticker.ts index 60caa5f4..fc83bd20 100644 --- a/payloads/v9/sticker.ts +++ b/payloads/v9/sticker.ts @@ -70,7 +70,7 @@ export interface APISticker { */ export enum StickerType { /** - * An official sticker in a pack, part of Nitro or in a removed purchasable pack + * An official sticker in a pack */ Standard = 1, /** diff --git a/rest/v10/index.ts b/rest/v10/index.ts index 642a4caf..674fb346 100644 --- a/rest/v10/index.ts +++ b/rest/v10/index.ts @@ -830,6 +830,16 @@ export const Routes = { * Route for: * - GET `/sticker-packs` */ + stickerPacks() { + return '/sticker-packs' as const; + }, + + /** + * Route for: + * - GET `/sticker-packs` + * + * @deprecated Use {@link Routes.stickerPacks} instead. + */ nitroStickerPacks() { return '/sticker-packs' as const; }, diff --git a/rest/v10/sticker.ts b/rest/v10/sticker.ts index 90d3a76f..21f3ab00 100644 --- a/rest/v10/sticker.ts +++ b/rest/v10/sticker.ts @@ -6,12 +6,19 @@ import type { APISticker, APIStickerPack } from '../../payloads/v10/index'; export type RESTGetAPIStickerResult = APISticker; /** - * https://discord.com/developers/docs/resources/sticker#list-nitro-sticker-packs + * https://discord.com/developers/docs/resources/sticker#list-sticker-packs */ -export interface RESTGetNitroStickerPacksResult { +export interface RESTGetStickerPacksResult { sticker_packs: APIStickerPack[]; } +/** + * https://discord.com/developers/docs/resources/sticker#list-sticker-packs + * + * @deprecated Use `RESTGetStickerPacksResult` instead + */ +export type RESTGetNitroStickerPacksResult = RESTGetStickerPacksResult; + /** * https://discord.com/developers/docs/resources/sticker#list-guild-stickers */ diff --git a/rest/v9/index.ts b/rest/v9/index.ts index 3a5825ab..bd663d5f 100644 --- a/rest/v9/index.ts +++ b/rest/v9/index.ts @@ -839,6 +839,16 @@ export const Routes = { * Route for: * - GET `/sticker-packs` */ + stickerPacks() { + return '/sticker-packs' as const; + }, + + /** + * Route for: + * - GET `/sticker-packs` + * + * @deprecated Use {@link Routes.stickerPacks} instead. + */ nitroStickerPacks() { return '/sticker-packs' as const; }, diff --git a/rest/v9/sticker.ts b/rest/v9/sticker.ts index 5df07410..df27abc6 100644 --- a/rest/v9/sticker.ts +++ b/rest/v9/sticker.ts @@ -6,12 +6,19 @@ import type { APISticker, APIStickerPack } from '../../payloads/v9/index'; export type RESTGetAPIStickerResult = APISticker; /** - * https://discord.com/developers/docs/resources/sticker#list-nitro-sticker-packs + * https://discord.com/developers/docs/resources/sticker#list-sticker-packs */ -export interface RESTGetNitroStickerPacksResult { +export interface RESTGetStickerPacksResult { sticker_packs: APIStickerPack[]; } +/** + * https://discord.com/developers/docs/resources/sticker#list-sticker-packs + * + * @deprecated Use `RESTGetStickerPacksResult` instead + */ +export type RESTGetNitroStickerPacksResult = RESTGetStickerPacksResult; + /** * https://discord.com/developers/docs/resources/sticker#list-guild-stickers */