diff --git a/deno/payloads/v10/guild.ts b/deno/payloads/v10/guild.ts index e23bc1565..b74d1b617 100644 --- a/deno/payloads/v10/guild.ts +++ b/deno/payloads/v10/guild.ts @@ -280,6 +280,10 @@ export interface APIGuild extends APIPartialGuild { * The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord */ safety_alerts_channel_id: Snowflake | null; + /** + * The incidents data for this guild + */ + incidents_data: IncidentsData | null; } /** @@ -1120,3 +1124,14 @@ export enum GuildOnboardingPromptType { MultipleChoice, Dropdown, } + +export interface IncidentsData { + /** + * When invites get enabled again + */ + invites_disabled_until: string | null; + /** + * When direct messages get enabled again + */ + dms_disabled_until: string | null; +} diff --git a/deno/payloads/v9/guild.ts b/deno/payloads/v9/guild.ts index 67b18fbd1..1bef85191 100644 --- a/deno/payloads/v9/guild.ts +++ b/deno/payloads/v9/guild.ts @@ -280,6 +280,10 @@ export interface APIGuild extends APIPartialGuild { * The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord */ safety_alerts_channel_id: Snowflake | null; + /** + * The incidents data for this guild + */ + incidents_data: IncidentsData | null; } /** @@ -1112,3 +1116,14 @@ export enum GuildOnboardingPromptType { MultipleChoice, Dropdown, } + +export interface IncidentsData { + /** + * When invites get enabled again + */ + invites_disabled_until: string | null; + /** + * When direct messages get enabled again + */ + dms_disabled_until: string | null; +} diff --git a/deno/rest/v10/mod.ts b/deno/rest/v10/mod.ts index 9da646bf8..7172da0d5 100644 --- a/deno/rest/v10/mod.ts +++ b/deno/rest/v10/mod.ts @@ -900,6 +900,14 @@ export const Routes = { return `/guilds/${guildId}/onboarding` as const; }, + /** + * Route for: + * - PUT `/guilds/${guild.id}/incident-actions` + */ + guildIncidentActions(guildId: Snowflake) { + return `/guilds/${guildId}/incident-actions` as const; + }, + /** * Route for: * - GET `/applications/@me` diff --git a/deno/rest/v9/mod.ts b/deno/rest/v9/mod.ts index 0995b93d0..540f2ca2f 100644 --- a/deno/rest/v9/mod.ts +++ b/deno/rest/v9/mod.ts @@ -909,6 +909,14 @@ export const Routes = { return `/guilds/${guildId}/onboarding` as const; }, + /** + * Route for: + * - PUT `/guilds/${guild.id}/incident-actions` + */ + guildIncidentActions(guildId: Snowflake) { + return `/guilds/${guildId}/incident-actions` as const; + }, + /** * Route for: * - GET `/applications/@me` diff --git a/payloads/v10/guild.ts b/payloads/v10/guild.ts index 7bad46f35..678f21def 100644 --- a/payloads/v10/guild.ts +++ b/payloads/v10/guild.ts @@ -280,6 +280,10 @@ export interface APIGuild extends APIPartialGuild { * The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord */ safety_alerts_channel_id: Snowflake | null; + /** + * The incidents data for this guild + */ + incidents_data: IncidentsData | null; } /** @@ -1120,3 +1124,14 @@ export enum GuildOnboardingPromptType { MultipleChoice, Dropdown, } + +export interface IncidentsData { + /** + * When invites get enabled again + */ + invites_disabled_until: string | null; + /** + * When direct messages get enabled again + */ + dms_disabled_until: string | null; +} diff --git a/payloads/v9/guild.ts b/payloads/v9/guild.ts index 59912747a..1ec786bfd 100644 --- a/payloads/v9/guild.ts +++ b/payloads/v9/guild.ts @@ -280,6 +280,10 @@ export interface APIGuild extends APIPartialGuild { * The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord */ safety_alerts_channel_id: Snowflake | null; + /** + * The incidents data for this guild + */ + incidents_data: IncidentsData | null; } /** @@ -1112,3 +1116,14 @@ export enum GuildOnboardingPromptType { MultipleChoice, Dropdown, } + +export interface IncidentsData { + /** + * When invites get enabled again + */ + invites_disabled_until: string | null; + /** + * When direct messages get enabled again + */ + dms_disabled_until: string | null; +} diff --git a/rest/v10/index.ts b/rest/v10/index.ts index eaf6095a3..d01f1fffd 100644 --- a/rest/v10/index.ts +++ b/rest/v10/index.ts @@ -900,6 +900,14 @@ export const Routes = { return `/guilds/${guildId}/onboarding` as const; }, + /** + * Route for: + * - PUT `/guilds/${guild.id}/incident-actions` + */ + guildIncidentActions(guildId: Snowflake) { + return `/guilds/${guildId}/incident-actions` as const; + }, + /** * Route for: * - GET `/applications/@me` diff --git a/rest/v9/index.ts b/rest/v9/index.ts index 26e857ac6..1b60aad42 100644 --- a/rest/v9/index.ts +++ b/rest/v9/index.ts @@ -909,6 +909,14 @@ export const Routes = { return `/guilds/${guildId}/onboarding` as const; }, + /** + * Route for: + * - PUT `/guilds/${guild.id}/incident-actions` + */ + guildIncidentActions(guildId: Snowflake) { + return `/guilds/${guildId}/incident-actions` as const; + }, + /** * Route for: * - GET `/applications/@me`