diff --git a/deno/payloads/v10/channel.ts b/deno/payloads/v10/channel.ts index d4b0f7ad1..accb8bf65 100644 --- a/deno/payloads/v10/channel.ts +++ b/deno/payloads/v10/channel.ts @@ -781,6 +781,11 @@ export enum MessageType { StageRaiseHand, StageTopic, GuildApplicationPremiumSubscription, + + GuildIncidentAlertModeEnabled = 36, + GuildIncidentAlertModeDisabled, + GuildIncidentReportRaid, + GuildIncidentReportFalseAlarm, } /** diff --git a/deno/payloads/v10/guild.ts b/deno/payloads/v10/guild.ts index ee4f51bc6..d86ffda25 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: APIIncidentsData | null; } /** @@ -1126,3 +1130,14 @@ export enum GuildOnboardingPromptType { MultipleChoice, Dropdown, } + +export interface APIIncidentsData { + /** + * 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 51bc1f246..47e087215 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: APIIncidentsData | null; } /** @@ -1118,3 +1122,14 @@ export enum GuildOnboardingPromptType { MultipleChoice, Dropdown, } + +export interface APIIncidentsData { + /** + * 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 b6c12325a..1c062d0bb 100644 --- a/deno/rest/v10/mod.ts +++ b/deno/rest/v10/mod.ts @@ -919,6 +919,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 57f5fc103..5a623e4d4 100644 --- a/deno/rest/v9/mod.ts +++ b/deno/rest/v9/mod.ts @@ -928,6 +928,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/channel.ts b/payloads/v10/channel.ts index 563317033..06c37cad4 100644 --- a/payloads/v10/channel.ts +++ b/payloads/v10/channel.ts @@ -781,6 +781,11 @@ export enum MessageType { StageRaiseHand, StageTopic, GuildApplicationPremiumSubscription, + + GuildIncidentAlertModeEnabled = 36, + GuildIncidentAlertModeDisabled, + GuildIncidentReportRaid, + GuildIncidentReportFalseAlarm, } /** diff --git a/payloads/v10/guild.ts b/payloads/v10/guild.ts index c0a0c4491..fb82edf63 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: APIIncidentsData | null; } /** @@ -1126,3 +1130,14 @@ export enum GuildOnboardingPromptType { MultipleChoice, Dropdown, } + +export interface APIIncidentsData { + /** + * 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 e09774d2f..75b611b90 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: APIIncidentsData | null; } /** @@ -1118,3 +1122,14 @@ export enum GuildOnboardingPromptType { MultipleChoice, Dropdown, } + +export interface APIIncidentsData { + /** + * 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 b7fed8cec..d719abb2e 100644 --- a/rest/v10/index.ts +++ b/rest/v10/index.ts @@ -919,6 +919,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 129f728a5..4b2cc1646 100644 --- a/rest/v9/index.ts +++ b/rest/v9/index.ts @@ -928,6 +928,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`