diff --git a/deno/payloads/v10/channel.ts b/deno/payloads/v10/channel.ts index abfcfaf2d..a00da007a 100644 --- a/deno/payloads/v10/channel.ts +++ b/deno/payloads/v10/channel.ts @@ -286,6 +286,12 @@ export enum ChannelType { * See https://support.discord.com/hc/en-us/articles/1500005513722 */ GuildStageVoice, + /** + * The channel in a Student Hub containing the listed servers + * + * See https://support.discord.com/hc/en-us/articles/4406046651927-Discord-Student-Hubs-FAQ + */ + GuildDirectory, } export enum VideoQualityMode { diff --git a/deno/payloads/v10/guild.ts b/deno/payloads/v10/guild.ts index 4edccd9c1..a6764f8bc 100644 --- a/deno/payloads/v10/guild.ts +++ b/deno/payloads/v10/guild.ts @@ -346,6 +346,10 @@ export interface APIGuild extends APIPartialGuild { * https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object */ guild_scheduled_events?: APIGuildScheduledEvent[]; + /** + * The type of Student Hub the guild is + */ + hub_type: GuildHubType | null; } /** @@ -419,6 +423,12 @@ export enum GuildPremiumTier { Tier3, } +export enum GuildHubType { + Default, + HighSchool, + College, +} + /** * https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags */ @@ -473,10 +483,26 @@ export enum GuildFeature { * Guild is able to be featured in the directory */ Featurable = 'FEATURABLE', + /** + * Guild is listed in a directory channel + */ + HasDirectoryEntry = 'HAS_DIRECTORY_ENTRY', + /** + * Guild is a Student Hub + * + * See https://support.discord.com/hc/en-us/articles/4406046651927-Discord-Student-Hubs-FAQ + */ + Hub = 'HUB', /** * Guild has access to set an invite splash background */ InviteSplash = 'INVITE_SPLASH', + /** + * Guild is in a Student Hub + * + * See https://support.discord.com/hc/en-us/articles/4406046651927-Discord-Student-Hubs-FAQ + */ + LinkedToHub = 'LINKED_TO_HUB', /** * Guild has enabled Membership Screening */ diff --git a/deno/payloads/v9/channel.ts b/deno/payloads/v9/channel.ts index abfcfaf2d..a00da007a 100644 --- a/deno/payloads/v9/channel.ts +++ b/deno/payloads/v9/channel.ts @@ -286,6 +286,12 @@ export enum ChannelType { * See https://support.discord.com/hc/en-us/articles/1500005513722 */ GuildStageVoice, + /** + * The channel in a Student Hub containing the listed servers + * + * See https://support.discord.com/hc/en-us/articles/4406046651927-Discord-Student-Hubs-FAQ + */ + GuildDirectory, } export enum VideoQualityMode { diff --git a/deno/payloads/v9/guild.ts b/deno/payloads/v9/guild.ts index 4edccd9c1..a6764f8bc 100644 --- a/deno/payloads/v9/guild.ts +++ b/deno/payloads/v9/guild.ts @@ -346,6 +346,10 @@ export interface APIGuild extends APIPartialGuild { * https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object */ guild_scheduled_events?: APIGuildScheduledEvent[]; + /** + * The type of Student Hub the guild is + */ + hub_type: GuildHubType | null; } /** @@ -419,6 +423,12 @@ export enum GuildPremiumTier { Tier3, } +export enum GuildHubType { + Default, + HighSchool, + College, +} + /** * https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags */ @@ -473,10 +483,26 @@ export enum GuildFeature { * Guild is able to be featured in the directory */ Featurable = 'FEATURABLE', + /** + * Guild is listed in a directory channel + */ + HasDirectoryEntry = 'HAS_DIRECTORY_ENTRY', + /** + * Guild is a Student Hub + * + * See https://support.discord.com/hc/en-us/articles/4406046651927-Discord-Student-Hubs-FAQ + */ + Hub = 'HUB', /** * Guild has access to set an invite splash background */ InviteSplash = 'INVITE_SPLASH', + /** + * Guild is in a Student Hub + * + * See https://support.discord.com/hc/en-us/articles/4406046651927-Discord-Student-Hubs-FAQ + */ + LinkedToHub = 'LINKED_TO_HUB', /** * Guild has enabled Membership Screening */ diff --git a/payloads/v10/channel.ts b/payloads/v10/channel.ts index e35d95af0..4a31cc996 100644 --- a/payloads/v10/channel.ts +++ b/payloads/v10/channel.ts @@ -286,6 +286,12 @@ export enum ChannelType { * See https://support.discord.com/hc/en-us/articles/1500005513722 */ GuildStageVoice, + /** + * The channel in a Student Hub containing the listed servers + * + * See https://support.discord.com/hc/en-us/articles/4406046651927-Discord-Student-Hubs-FAQ + */ + GuildDirectory, } export enum VideoQualityMode { diff --git a/payloads/v10/guild.ts b/payloads/v10/guild.ts index b3100640c..219daf94d 100644 --- a/payloads/v10/guild.ts +++ b/payloads/v10/guild.ts @@ -346,6 +346,10 @@ export interface APIGuild extends APIPartialGuild { * https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object */ guild_scheduled_events?: APIGuildScheduledEvent[]; + /** + * The type of Student Hub the guild is + */ + hub_type: GuildHubType | null; } /** @@ -419,6 +423,12 @@ export enum GuildPremiumTier { Tier3, } +export enum GuildHubType { + Default, + HighSchool, + College, +} + /** * https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags */ @@ -473,10 +483,26 @@ export enum GuildFeature { * Guild is able to be featured in the directory */ Featurable = 'FEATURABLE', + /** + * Guild is listed in a directory channel + */ + HasDirectoryEntry = 'HAS_DIRECTORY_ENTRY', + /** + * Guild is a Student Hub + * + * See https://support.discord.com/hc/en-us/articles/4406046651927-Discord-Student-Hubs-FAQ + */ + Hub = 'HUB', /** * Guild has access to set an invite splash background */ InviteSplash = 'INVITE_SPLASH', + /** + * Guild is in a Student Hub + * + * See https://support.discord.com/hc/en-us/articles/4406046651927-Discord-Student-Hubs-FAQ + */ + LinkedToHub = 'LINKED_TO_HUB', /** * Guild has enabled Membership Screening */ diff --git a/payloads/v9/channel.ts b/payloads/v9/channel.ts index e35d95af0..4a31cc996 100644 --- a/payloads/v9/channel.ts +++ b/payloads/v9/channel.ts @@ -286,6 +286,12 @@ export enum ChannelType { * See https://support.discord.com/hc/en-us/articles/1500005513722 */ GuildStageVoice, + /** + * The channel in a Student Hub containing the listed servers + * + * See https://support.discord.com/hc/en-us/articles/4406046651927-Discord-Student-Hubs-FAQ + */ + GuildDirectory, } export enum VideoQualityMode { diff --git a/payloads/v9/guild.ts b/payloads/v9/guild.ts index b3100640c..219daf94d 100644 --- a/payloads/v9/guild.ts +++ b/payloads/v9/guild.ts @@ -346,6 +346,10 @@ export interface APIGuild extends APIPartialGuild { * https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object */ guild_scheduled_events?: APIGuildScheduledEvent[]; + /** + * The type of Student Hub the guild is + */ + hub_type: GuildHubType | null; } /** @@ -419,6 +423,12 @@ export enum GuildPremiumTier { Tier3, } +export enum GuildHubType { + Default, + HighSchool, + College, +} + /** * https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags */ @@ -473,10 +483,26 @@ export enum GuildFeature { * Guild is able to be featured in the directory */ Featurable = 'FEATURABLE', + /** + * Guild is listed in a directory channel + */ + HasDirectoryEntry = 'HAS_DIRECTORY_ENTRY', + /** + * Guild is a Student Hub + * + * See https://support.discord.com/hc/en-us/articles/4406046651927-Discord-Student-Hubs-FAQ + */ + Hub = 'HUB', /** * Guild has access to set an invite splash background */ InviteSplash = 'INVITE_SPLASH', + /** + * Guild is in a Student Hub + * + * See https://support.discord.com/hc/en-us/articles/4406046651927-Discord-Student-Hubs-FAQ + */ + LinkedToHub = 'LINKED_TO_HUB', /** * Guild has enabled Membership Screening */