Skip to content

Commit

Permalink
feat: student hubs (#215)
Browse files Browse the repository at this point in the history
With extra documentation because sometimes Discord doesn't wanna document crucial things -.-
  • Loading branch information
advaith1 committed Apr 7, 2022
1 parent bc6e97f commit 69079ee
Show file tree
Hide file tree
Showing 8 changed files with 128 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deno/payloads/v10/channel.ts
Expand Up @@ -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 {
Expand Down
26 changes: 26 additions & 0 deletions deno/payloads/v10/guild.ts
Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*/
Expand Down
6 changes: 6 additions & 0 deletions deno/payloads/v9/channel.ts
Expand Up @@ -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 {
Expand Down
26 changes: 26 additions & 0 deletions deno/payloads/v9/guild.ts
Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*/
Expand Down
6 changes: 6 additions & 0 deletions payloads/v10/channel.ts
Expand Up @@ -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 {
Expand Down
26 changes: 26 additions & 0 deletions payloads/v10/guild.ts
Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*/
Expand Down
6 changes: 6 additions & 0 deletions payloads/v9/channel.ts
Expand Up @@ -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 {
Expand Down
26 changes: 26 additions & 0 deletions payloads/v9/guild.ts
Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit 69079ee

Please sign in to comment.