From c23f2accf998ffa0c068d222fd9f34228a86a699 Mon Sep 17 00:00:00 2001 From: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com> Date: Tue, 29 Mar 2022 13:39:53 -0400 Subject: [PATCH] feat(GuildFeatures): add animated banners (#219) --- deno/payloads/v10/guild.ts | 4 ++++ deno/payloads/v8/guild.ts | 4 ++++ deno/payloads/v9/guild.ts | 4 ++++ deno/rest/v10/guild.ts | 2 +- deno/rest/v8/guild.ts | 2 +- deno/rest/v9/guild.ts | 2 +- payloads/v10/guild.ts | 4 ++++ payloads/v8/guild.ts | 4 ++++ payloads/v9/guild.ts | 4 ++++ rest/v10/guild.ts | 2 +- rest/v8/guild.ts | 2 +- rest/v9/guild.ts | 2 +- 12 files changed, 30 insertions(+), 6 deletions(-) diff --git a/deno/payloads/v10/guild.ts b/deno/payloads/v10/guild.ts index 3f2234476..06072c1b7 100644 --- a/deno/payloads/v10/guild.ts +++ b/deno/payloads/v10/guild.ts @@ -445,6 +445,10 @@ export enum GuildSystemChannelFlags { * https://discord.com/developers/docs/resources/guild#guild-object-guild-features */ export enum GuildFeature { + /** + * Guild has access to set an animated guild banner image + */ + AnimatedBanner = 'ANIMATED_BANNER', /** * Guild has access to set an animated guild icon */ diff --git a/deno/payloads/v8/guild.ts b/deno/payloads/v8/guild.ts index 9f0c265e5..baea83725 100644 --- a/deno/payloads/v8/guild.ts +++ b/deno/payloads/v8/guild.ts @@ -448,6 +448,10 @@ export enum GuildSystemChannelFlags { * @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10. */ export enum GuildFeature { + /** + * Guild has access to set an animated guild banner image + */ + AnimatedBanner = 'ANIMATED_BANNER', /** * Guild has access to set an animated guild icon */ diff --git a/deno/payloads/v9/guild.ts b/deno/payloads/v9/guild.ts index 3f2234476..06072c1b7 100644 --- a/deno/payloads/v9/guild.ts +++ b/deno/payloads/v9/guild.ts @@ -445,6 +445,10 @@ export enum GuildSystemChannelFlags { * https://discord.com/developers/docs/resources/guild#guild-object-guild-features */ export enum GuildFeature { + /** + * Guild has access to set an animated guild banner image + */ + AnimatedBanner = 'ANIMATED_BANNER', /** * Guild has access to set an animated guild icon */ diff --git a/deno/rest/v10/guild.ts b/deno/rest/v10/guild.ts index 60d4f6a3c..1087f6daa 100644 --- a/deno/rest/v10/guild.ts +++ b/deno/rest/v10/guild.ts @@ -230,7 +230,7 @@ export type RESTPatchAPIGuildJSONBody = AddUndefinedToPossiblyUndefinedPropertie */ discovery_splash?: string | null; /** - * base64 16:9 png/jpeg image for the guild banner (when the guild has `BANNER` feature) + * base64 16:9 png/jpeg image for the guild banner (when the server has the `BANNER` feature; can be animated gif when the server has the `ANIMATED_BANNER` feature) */ banner?: string | null; /** diff --git a/deno/rest/v8/guild.ts b/deno/rest/v8/guild.ts index 20eac864c..81b545977 100644 --- a/deno/rest/v8/guild.ts +++ b/deno/rest/v8/guild.ts @@ -248,7 +248,7 @@ export type RESTPatchAPIGuildJSONBody = AddUndefinedToPossiblyUndefinedPropertie */ discovery_splash?: string | null; /** - * base64 16:9 png/jpeg image for the guild banner (when the guild has `BANNER` feature) + * base64 16:9 png/jpeg image for the guild banner (when the server has the `BANNER` feature; can be animated gif when the server has the `ANIMATED_BANNER` feature) */ banner?: string | null; /** diff --git a/deno/rest/v9/guild.ts b/deno/rest/v9/guild.ts index 566ca74f3..89b6706e9 100644 --- a/deno/rest/v9/guild.ts +++ b/deno/rest/v9/guild.ts @@ -230,7 +230,7 @@ export type RESTPatchAPIGuildJSONBody = AddUndefinedToPossiblyUndefinedPropertie */ discovery_splash?: string | null; /** - * base64 16:9 png/jpeg image for the guild banner (when the guild has `BANNER` feature) + * base64 16:9 png/jpeg image for the guild banner (when the server has the `BANNER` feature; can be animated gif when the server has the `ANIMATED_BANNER` feature) */ banner?: string | null; /** diff --git a/payloads/v10/guild.ts b/payloads/v10/guild.ts index 5f3414e2f..10ac6bdb3 100644 --- a/payloads/v10/guild.ts +++ b/payloads/v10/guild.ts @@ -445,6 +445,10 @@ export enum GuildSystemChannelFlags { * https://discord.com/developers/docs/resources/guild#guild-object-guild-features */ export enum GuildFeature { + /** + * Guild has access to set an animated guild banner image + */ + AnimatedBanner = 'ANIMATED_BANNER', /** * Guild has access to set an animated guild icon */ diff --git a/payloads/v8/guild.ts b/payloads/v8/guild.ts index ec2ec4acc..4005e7333 100644 --- a/payloads/v8/guild.ts +++ b/payloads/v8/guild.ts @@ -448,6 +448,10 @@ export enum GuildSystemChannelFlags { * @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10. */ export enum GuildFeature { + /** + * Guild has access to set an animated guild banner image + */ + AnimatedBanner = 'ANIMATED_BANNER', /** * Guild has access to set an animated guild icon */ diff --git a/payloads/v9/guild.ts b/payloads/v9/guild.ts index 5f3414e2f..10ac6bdb3 100644 --- a/payloads/v9/guild.ts +++ b/payloads/v9/guild.ts @@ -445,6 +445,10 @@ export enum GuildSystemChannelFlags { * https://discord.com/developers/docs/resources/guild#guild-object-guild-features */ export enum GuildFeature { + /** + * Guild has access to set an animated guild banner image + */ + AnimatedBanner = 'ANIMATED_BANNER', /** * Guild has access to set an animated guild icon */ diff --git a/rest/v10/guild.ts b/rest/v10/guild.ts index 3b965d5ab..d22a06220 100644 --- a/rest/v10/guild.ts +++ b/rest/v10/guild.ts @@ -230,7 +230,7 @@ export type RESTPatchAPIGuildJSONBody = AddUndefinedToPossiblyUndefinedPropertie */ discovery_splash?: string | null; /** - * base64 16:9 png/jpeg image for the guild banner (when the guild has `BANNER` feature) + * base64 16:9 png/jpeg image for the guild banner (when the server has the `BANNER` feature; can be animated gif when the server has the `ANIMATED_BANNER` feature) */ banner?: string | null; /** diff --git a/rest/v8/guild.ts b/rest/v8/guild.ts index 08c79e77e..6af2eebef 100644 --- a/rest/v8/guild.ts +++ b/rest/v8/guild.ts @@ -248,7 +248,7 @@ export type RESTPatchAPIGuildJSONBody = AddUndefinedToPossiblyUndefinedPropertie */ discovery_splash?: string | null; /** - * base64 16:9 png/jpeg image for the guild banner (when the guild has `BANNER` feature) + * base64 16:9 png/jpeg image for the guild banner (when the server has the `BANNER` feature; can be animated gif when the server has the `ANIMATED_BANNER` feature) */ banner?: string | null; /** diff --git a/rest/v9/guild.ts b/rest/v9/guild.ts index ccb08810b..37740c9db 100644 --- a/rest/v9/guild.ts +++ b/rest/v9/guild.ts @@ -230,7 +230,7 @@ export type RESTPatchAPIGuildJSONBody = AddUndefinedToPossiblyUndefinedPropertie */ discovery_splash?: string | null; /** - * base64 16:9 png/jpeg image for the guild banner (when the guild has `BANNER` feature) + * base64 16:9 png/jpeg image for the guild banner (when the server has the `BANNER` feature; can be animated gif when the server has the `ANIMATED_BANNER` feature) */ banner?: string | null; /**