From a6bcb3f0fe7bc4edceee61b7cdab0e46db9c7109 Mon Sep 17 00:00:00 2001 From: Almeida Date: Tue, 10 Jan 2023 21:09:08 +0000 Subject: [PATCH] feat(StickerFormatType): add `GIF` (#688) --- deno/payloads/v10/sticker.ts | 1 + deno/payloads/v9/sticker.ts | 1 + deno/rest/v10/mod.ts | 4 ++-- deno/rest/v10/sticker.ts | 2 +- deno/rest/v9/mod.ts | 4 ++-- deno/rest/v9/sticker.ts | 2 +- payloads/v10/sticker.ts | 1 + payloads/v9/sticker.ts | 1 + rest/v10/index.ts | 4 ++-- rest/v10/sticker.ts | 2 +- rest/v9/index.ts | 4 ++-- rest/v9/sticker.ts | 2 +- 12 files changed, 16 insertions(+), 12 deletions(-) diff --git a/deno/payloads/v10/sticker.ts b/deno/payloads/v10/sticker.ts index 6bb1cdf8..4448ebce 100644 --- a/deno/payloads/v10/sticker.ts +++ b/deno/payloads/v10/sticker.ts @@ -85,6 +85,7 @@ export enum StickerFormatType { PNG = 1, APNG, Lottie, + GIF, } /** diff --git a/deno/payloads/v9/sticker.ts b/deno/payloads/v9/sticker.ts index 6bb1cdf8..4448ebce 100644 --- a/deno/payloads/v9/sticker.ts +++ b/deno/payloads/v9/sticker.ts @@ -85,6 +85,7 @@ export enum StickerFormatType { PNG = 1, APNG, Lottie, + GIF, } /** diff --git a/deno/rest/v10/mod.ts b/deno/rest/v10/mod.ts index ded0fbd1..88301b8e 100644 --- a/deno/rest/v10/mod.ts +++ b/deno/rest/v10/mod.ts @@ -1058,7 +1058,7 @@ export const CDNRoutes = { * Route for: * - GET `/stickers/{sticker.id}.{png|json}` * - * This route supports the extensions: PNG, Lottie + * This route supports the extensions: PNG, Lottie, GIF */ sticker(stickerId: Snowflake, format: StickerFormat) { return `/stickers/${stickerId}.${format}` as const; @@ -1116,7 +1116,7 @@ export type ApplicationAssetFormat = Exclude; export type StickerPackBannerFormat = Exclude; export type TeamIconFormat = Exclude; -export type StickerFormat = Extract; +export type StickerFormat = Extract; export type RoleIconFormat = Exclude; export type GuildScheduledEventCoverFormat = Exclude; export type GuildMemberBannerFormat = Exclude; diff --git a/deno/rest/v10/sticker.ts b/deno/rest/v10/sticker.ts index acc7ba69..3113f19a 100644 --- a/deno/rest/v10/sticker.ts +++ b/deno/rest/v10/sticker.ts @@ -40,7 +40,7 @@ export interface RESTPostAPIGuildStickerFormDataBody { */ tags: string; /** - * The sticker file to upload, must be a PNG, APNG, or Lottie JSON file, max 500 KB + * The sticker file to upload, must be a PNG, APNG, GIF, or Lottie JSON file, max 500 KB */ file: unknown; } diff --git a/deno/rest/v9/mod.ts b/deno/rest/v9/mod.ts index 8e009812..b1367645 100644 --- a/deno/rest/v9/mod.ts +++ b/deno/rest/v9/mod.ts @@ -1067,7 +1067,7 @@ export const CDNRoutes = { * Route for: * - GET `/stickers/{sticker.id}.{png|json}` * - * This route supports the extensions: PNG, Lottie + * This route supports the extensions: PNG, Lottie, GIF */ sticker(stickerId: Snowflake, format: StickerFormat) { return `/stickers/${stickerId}.${format}` as const; @@ -1125,7 +1125,7 @@ export type ApplicationAssetFormat = Exclude; export type StickerPackBannerFormat = Exclude; export type TeamIconFormat = Exclude; -export type StickerFormat = Extract; +export type StickerFormat = Extract; export type RoleIconFormat = Exclude; export type GuildScheduledEventCoverFormat = Exclude; export type GuildMemberBannerFormat = Exclude; diff --git a/deno/rest/v9/sticker.ts b/deno/rest/v9/sticker.ts index 25babce4..d51f1774 100644 --- a/deno/rest/v9/sticker.ts +++ b/deno/rest/v9/sticker.ts @@ -40,7 +40,7 @@ export interface RESTPostAPIGuildStickerFormDataBody { */ tags: string; /** - * The sticker file to upload, must be a PNG, APNG, or Lottie JSON file, max 500 KB + * The sticker file to upload, must be a PNG, APNG, GIF, or Lottie JSON file, max 500 KB */ file: unknown; } diff --git a/payloads/v10/sticker.ts b/payloads/v10/sticker.ts index 3137dba7..a2c68ff4 100644 --- a/payloads/v10/sticker.ts +++ b/payloads/v10/sticker.ts @@ -85,6 +85,7 @@ export enum StickerFormatType { PNG = 1, APNG, Lottie, + GIF, } /** diff --git a/payloads/v9/sticker.ts b/payloads/v9/sticker.ts index 3137dba7..a2c68ff4 100644 --- a/payloads/v9/sticker.ts +++ b/payloads/v9/sticker.ts @@ -85,6 +85,7 @@ export enum StickerFormatType { PNG = 1, APNG, Lottie, + GIF, } /** diff --git a/rest/v10/index.ts b/rest/v10/index.ts index 56cbfc53..6a98f6ef 100644 --- a/rest/v10/index.ts +++ b/rest/v10/index.ts @@ -1058,7 +1058,7 @@ export const CDNRoutes = { * Route for: * - GET `/stickers/{sticker.id}.{png|json}` * - * This route supports the extensions: PNG, Lottie + * This route supports the extensions: PNG, Lottie, GIF */ sticker(stickerId: Snowflake, format: StickerFormat) { return `/stickers/${stickerId}.${format}` as const; @@ -1116,7 +1116,7 @@ export type ApplicationAssetFormat = Exclude; export type StickerPackBannerFormat = Exclude; export type TeamIconFormat = Exclude; -export type StickerFormat = Extract; +export type StickerFormat = Extract; export type RoleIconFormat = Exclude; export type GuildScheduledEventCoverFormat = Exclude; export type GuildMemberBannerFormat = Exclude; diff --git a/rest/v10/sticker.ts b/rest/v10/sticker.ts index 1f4f537d..9540212f 100644 --- a/rest/v10/sticker.ts +++ b/rest/v10/sticker.ts @@ -40,7 +40,7 @@ export interface RESTPostAPIGuildStickerFormDataBody { */ tags: string; /** - * The sticker file to upload, must be a PNG, APNG, or Lottie JSON file, max 500 KB + * The sticker file to upload, must be a PNG, APNG, GIF, or Lottie JSON file, max 500 KB */ file: unknown; } diff --git a/rest/v9/index.ts b/rest/v9/index.ts index ad7f41c4..576a4151 100644 --- a/rest/v9/index.ts +++ b/rest/v9/index.ts @@ -1067,7 +1067,7 @@ export const CDNRoutes = { * Route for: * - GET `/stickers/{sticker.id}.{png|json}` * - * This route supports the extensions: PNG, Lottie + * This route supports the extensions: PNG, Lottie, GIF */ sticker(stickerId: Snowflake, format: StickerFormat) { return `/stickers/${stickerId}.${format}` as const; @@ -1125,7 +1125,7 @@ export type ApplicationAssetFormat = Exclude; export type StickerPackBannerFormat = Exclude; export type TeamIconFormat = Exclude; -export type StickerFormat = Extract; +export type StickerFormat = Extract; export type RoleIconFormat = Exclude; export type GuildScheduledEventCoverFormat = Exclude; export type GuildMemberBannerFormat = Exclude; diff --git a/rest/v9/sticker.ts b/rest/v9/sticker.ts index 68854c6a..82eca546 100644 --- a/rest/v9/sticker.ts +++ b/rest/v9/sticker.ts @@ -40,7 +40,7 @@ export interface RESTPostAPIGuildStickerFormDataBody { */ tags: string; /** - * The sticker file to upload, must be a PNG, APNG, or Lottie JSON file, max 500 KB + * The sticker file to upload, must be a PNG, APNG, GIF, or Lottie JSON file, max 500 KB */ file: unknown; }