Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: student hubs #215

Merged
merged 6 commits into from
Apr 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions deno/payloads/v10/channel.ts
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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