From 018d889d9aeb35b64dd914ade9ac93e8b98390ac Mon Sep 17 00:00:00 2001 From: Almeida Date: Fri, 25 Aug 2023 00:54:47 +0100 Subject: [PATCH] fix: standard stickers are now free (#789) --- deno/payloads/v10/sticker.ts | 2 +- deno/payloads/v9/sticker.ts | 2 +- deno/rest/v10/mod.ts | 10 ++++++++++ deno/rest/v10/sticker.ts | 11 +++++++++-- deno/rest/v9/mod.ts | 10 ++++++++++ deno/rest/v9/sticker.ts | 11 +++++++++-- payloads/v10/sticker.ts | 2 +- payloads/v9/sticker.ts | 2 +- rest/v10/index.ts | 10 ++++++++++ rest/v10/sticker.ts | 11 +++++++++-- rest/v9/index.ts | 10 ++++++++++ rest/v9/sticker.ts | 11 +++++++++-- 12 files changed, 80 insertions(+), 12 deletions(-) diff --git a/deno/payloads/v10/sticker.ts b/deno/payloads/v10/sticker.ts index 867665820..a5e5b9180 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 867665820..a5e5b9180 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 a8eac2924..6c7bfe8d3 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 ba4c921dd..b8e9c6159 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 9800a890e..e4465fc5d 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 ab9f9b3e7..6ca28f2da 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 60caa5f49..fc83bd20a 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 60caa5f49..fc83bd20a 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 642a4caf3..674fb3462 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 90d3a76fe..21f3ab00a 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 3a5825abf..bd663d5f3 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 5df074107..df27abc6d 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 */