Skip to content

Commit a6bcb3f

Browse files
authored
feat(StickerFormatType): add GIF (#688)
1 parent e2fb5ee commit a6bcb3f

File tree

12 files changed

+16
-12
lines changed

12 files changed

+16
-12
lines changed

deno/payloads/v10/sticker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export enum StickerFormatType {
8585
PNG = 1,
8686
APNG,
8787
Lottie,
88+
GIF,
8889
}
8990

9091
/**

deno/payloads/v9/sticker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export enum StickerFormatType {
8585
PNG = 1,
8686
APNG,
8787
Lottie,
88+
GIF,
8889
}
8990

9091
/**

deno/rest/v10/mod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ export const CDNRoutes = {
10581058
* Route for:
10591059
* - GET `/stickers/{sticker.id}.{png|json}`
10601060
*
1061-
* This route supports the extensions: PNG, Lottie
1061+
* This route supports the extensions: PNG, Lottie, GIF
10621062
*/
10631063
sticker(stickerId: Snowflake, format: StickerFormat) {
10641064
return `/stickers/${stickerId}.${format}` as const;
@@ -1116,7 +1116,7 @@ export type ApplicationAssetFormat = Exclude<ImageFormat, ImageFormat.Lottie | I
11161116
export type AchievementIconFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
11171117
export type StickerPackBannerFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
11181118
export type TeamIconFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
1119-
export type StickerFormat = Extract<ImageFormat, ImageFormat.PNG | ImageFormat.Lottie>;
1119+
export type StickerFormat = Extract<ImageFormat, ImageFormat.PNG | ImageFormat.Lottie | ImageFormat.GIF>;
11201120
export type RoleIconFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
11211121
export type GuildScheduledEventCoverFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
11221122
export type GuildMemberBannerFormat = Exclude<ImageFormat, ImageFormat.Lottie>;

deno/rest/v10/sticker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface RESTPostAPIGuildStickerFormDataBody {
4040
*/
4141
tags: string;
4242
/**
43-
* The sticker file to upload, must be a PNG, APNG, or Lottie JSON file, max 500 KB
43+
* The sticker file to upload, must be a PNG, APNG, GIF, or Lottie JSON file, max 500 KB
4444
*/
4545
file: unknown;
4646
}

deno/rest/v9/mod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ export const CDNRoutes = {
10671067
* Route for:
10681068
* - GET `/stickers/{sticker.id}.{png|json}`
10691069
*
1070-
* This route supports the extensions: PNG, Lottie
1070+
* This route supports the extensions: PNG, Lottie, GIF
10711071
*/
10721072
sticker(stickerId: Snowflake, format: StickerFormat) {
10731073
return `/stickers/${stickerId}.${format}` as const;
@@ -1125,7 +1125,7 @@ export type ApplicationAssetFormat = Exclude<ImageFormat, ImageFormat.Lottie | I
11251125
export type AchievementIconFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
11261126
export type StickerPackBannerFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
11271127
export type TeamIconFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
1128-
export type StickerFormat = Extract<ImageFormat, ImageFormat.PNG | ImageFormat.Lottie>;
1128+
export type StickerFormat = Extract<ImageFormat, ImageFormat.PNG | ImageFormat.Lottie | ImageFormat.GIF>;
11291129
export type RoleIconFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
11301130
export type GuildScheduledEventCoverFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
11311131
export type GuildMemberBannerFormat = Exclude<ImageFormat, ImageFormat.Lottie>;

deno/rest/v9/sticker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface RESTPostAPIGuildStickerFormDataBody {
4040
*/
4141
tags: string;
4242
/**
43-
* The sticker file to upload, must be a PNG, APNG, or Lottie JSON file, max 500 KB
43+
* The sticker file to upload, must be a PNG, APNG, GIF, or Lottie JSON file, max 500 KB
4444
*/
4545
file: unknown;
4646
}

payloads/v10/sticker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export enum StickerFormatType {
8585
PNG = 1,
8686
APNG,
8787
Lottie,
88+
GIF,
8889
}
8990

9091
/**

payloads/v9/sticker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export enum StickerFormatType {
8585
PNG = 1,
8686
APNG,
8787
Lottie,
88+
GIF,
8889
}
8990

9091
/**

rest/v10/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ export const CDNRoutes = {
10581058
* Route for:
10591059
* - GET `/stickers/{sticker.id}.{png|json}`
10601060
*
1061-
* This route supports the extensions: PNG, Lottie
1061+
* This route supports the extensions: PNG, Lottie, GIF
10621062
*/
10631063
sticker(stickerId: Snowflake, format: StickerFormat) {
10641064
return `/stickers/${stickerId}.${format}` as const;
@@ -1116,7 +1116,7 @@ export type ApplicationAssetFormat = Exclude<ImageFormat, ImageFormat.Lottie | I
11161116
export type AchievementIconFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
11171117
export type StickerPackBannerFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
11181118
export type TeamIconFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
1119-
export type StickerFormat = Extract<ImageFormat, ImageFormat.PNG | ImageFormat.Lottie>;
1119+
export type StickerFormat = Extract<ImageFormat, ImageFormat.PNG | ImageFormat.Lottie | ImageFormat.GIF>;
11201120
export type RoleIconFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
11211121
export type GuildScheduledEventCoverFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
11221122
export type GuildMemberBannerFormat = Exclude<ImageFormat, ImageFormat.Lottie>;

rest/v10/sticker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface RESTPostAPIGuildStickerFormDataBody {
4040
*/
4141
tags: string;
4242
/**
43-
* The sticker file to upload, must be a PNG, APNG, or Lottie JSON file, max 500 KB
43+
* The sticker file to upload, must be a PNG, APNG, GIF, or Lottie JSON file, max 500 KB
4444
*/
4545
file: unknown;
4646
}

rest/v9/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ export const CDNRoutes = {
10671067
* Route for:
10681068
* - GET `/stickers/{sticker.id}.{png|json}`
10691069
*
1070-
* This route supports the extensions: PNG, Lottie
1070+
* This route supports the extensions: PNG, Lottie, GIF
10711071
*/
10721072
sticker(stickerId: Snowflake, format: StickerFormat) {
10731073
return `/stickers/${stickerId}.${format}` as const;
@@ -1125,7 +1125,7 @@ export type ApplicationAssetFormat = Exclude<ImageFormat, ImageFormat.Lottie | I
11251125
export type AchievementIconFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
11261126
export type StickerPackBannerFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
11271127
export type TeamIconFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
1128-
export type StickerFormat = Extract<ImageFormat, ImageFormat.PNG | ImageFormat.Lottie>;
1128+
export type StickerFormat = Extract<ImageFormat, ImageFormat.PNG | ImageFormat.Lottie | ImageFormat.GIF>;
11291129
export type RoleIconFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
11301130
export type GuildScheduledEventCoverFormat = Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>;
11311131
export type GuildMemberBannerFormat = Exclude<ImageFormat, ImageFormat.Lottie>;

rest/v9/sticker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface RESTPostAPIGuildStickerFormDataBody {
4040
*/
4141
tags: string;
4242
/**
43-
* The sticker file to upload, must be a PNG, APNG, or Lottie JSON file, max 500 KB
43+
* The sticker file to upload, must be a PNG, APNG, GIF, or Lottie JSON file, max 500 KB
4444
*/
4545
file: unknown;
4646
}

0 commit comments

Comments
 (0)