diff --git a/deno/payloads/v10/auditLog.ts b/deno/payloads/v10/auditLog.ts index 10cdfd28..979b6a43 100644 --- a/deno/payloads/v10/auditLog.ts +++ b/deno/payloads/v10/auditLog.ts @@ -469,6 +469,11 @@ export type APIAuditLogChangeKeyRulesChannelId = AuditLogChangeData<'rules_chann */ export type APIAuditLogChangeKeyPublicUpdatesChannelId = AuditLogChangeData<'public_updates_channel_id', string>; +/** + * Returned when a guild's safety_alerts_channel_id is changed + */ +export type APIAuditLogChangeKeySafetyAlertsChannelId = AuditLogChangeData<'safety_alerts_channel_id', string>; + /** * Returned when a guild's mfa_level is changed */ diff --git a/deno/payloads/v10/autoModeration.ts b/deno/payloads/v10/autoModeration.ts index 45718837..91246b41 100644 --- a/deno/payloads/v10/autoModeration.ts +++ b/deno/payloads/v10/autoModeration.ts @@ -118,6 +118,12 @@ export interface APIAutoModerationRuleTriggerMetadata { * Associated trigger type: {@link AutoModerationRuleTriggerType.MentionSpam} */ mention_total_limit?: number; + /** + * Whether to automatically detect mention raids + * + * Associated trigger type: {@link AutoModerationRuleTriggerType.MentionSpam} + */ + mention_raid_protection_enabled?: boolean; } /** diff --git a/deno/payloads/v10/guild.ts b/deno/payloads/v10/guild.ts index e1a257eb..01dbefc9 100644 --- a/deno/payloads/v10/guild.ts +++ b/deno/payloads/v10/guild.ts @@ -276,6 +276,10 @@ export interface APIGuild extends APIPartialGuild { * The type of Student Hub the guild is */ hub_type: GuildHubType | null; + /** + * The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord + */ + safety_alerts_channel_id: Snowflake | null; } /** @@ -493,6 +497,10 @@ export enum GuildFeature { * Guild has access to create private threads */ PrivateThreads = 'PRIVATE_THREADS', + /** + * Guild has disabled alerts for join raids in the configured safety alerts channel + */ + RaidAlertsDisabled = 'RAID_ALERTS_DISABLED', RelayEnabled = 'RELAY_ENABLED', /** * Guild is able to set role icons diff --git a/deno/payloads/v9/auditLog.ts b/deno/payloads/v9/auditLog.ts index 10cdfd28..979b6a43 100644 --- a/deno/payloads/v9/auditLog.ts +++ b/deno/payloads/v9/auditLog.ts @@ -469,6 +469,11 @@ export type APIAuditLogChangeKeyRulesChannelId = AuditLogChangeData<'rules_chann */ export type APIAuditLogChangeKeyPublicUpdatesChannelId = AuditLogChangeData<'public_updates_channel_id', string>; +/** + * Returned when a guild's safety_alerts_channel_id is changed + */ +export type APIAuditLogChangeKeySafetyAlertsChannelId = AuditLogChangeData<'safety_alerts_channel_id', string>; + /** * Returned when a guild's mfa_level is changed */ diff --git a/deno/payloads/v9/autoModeration.ts b/deno/payloads/v9/autoModeration.ts index 45718837..91246b41 100644 --- a/deno/payloads/v9/autoModeration.ts +++ b/deno/payloads/v9/autoModeration.ts @@ -118,6 +118,12 @@ export interface APIAutoModerationRuleTriggerMetadata { * Associated trigger type: {@link AutoModerationRuleTriggerType.MentionSpam} */ mention_total_limit?: number; + /** + * Whether to automatically detect mention raids + * + * Associated trigger type: {@link AutoModerationRuleTriggerType.MentionSpam} + */ + mention_raid_protection_enabled?: boolean; } /** diff --git a/deno/payloads/v9/guild.ts b/deno/payloads/v9/guild.ts index 9dcab251..bc490e8a 100644 --- a/deno/payloads/v9/guild.ts +++ b/deno/payloads/v9/guild.ts @@ -276,6 +276,10 @@ export interface APIGuild extends APIPartialGuild { * The type of Student Hub the guild is */ hub_type: GuildHubType | null; + /** + * The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord + */ + safety_alerts_channel_id: Snowflake | null; } /** @@ -485,6 +489,10 @@ export enum GuildFeature { * Guild has access to create private threads */ PrivateThreads = 'PRIVATE_THREADS', + /** + * Guild has disabled alerts for join raids in the configured safety alerts channel + */ + RaidAlertsDisabled = 'RAID_ALERTS_DISABLED', RelayEnabled = 'RELAY_ENABLED', /** * Guild is able to set role icons diff --git a/deno/rest/v10/guild.ts b/deno/rest/v10/guild.ts index 208fd887..38232632 100644 --- a/deno/rest/v10/guild.ts +++ b/deno/rest/v10/guild.ts @@ -306,6 +306,10 @@ export interface RESTPatchAPIGuildJSONBody { * Whether the boosts progress bar should be enabled. */ premium_progress_bar_enabled?: boolean | undefined; + /** + * The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord + */ + safety_alerts_channel_id?: Snowflake | null | undefined; } /** diff --git a/deno/rest/v9/guild.ts b/deno/rest/v9/guild.ts index b295c38f..90957cfa 100644 --- a/deno/rest/v9/guild.ts +++ b/deno/rest/v9/guild.ts @@ -306,6 +306,10 @@ export interface RESTPatchAPIGuildJSONBody { * Whether the boosts progress bar should be enabled. */ premium_progress_bar_enabled?: boolean | undefined; + /** + * The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord + */ + safety_alerts_channel_id?: Snowflake | null | undefined; } /** diff --git a/payloads/v10/auditLog.ts b/payloads/v10/auditLog.ts index dac3a350..e2c2cd57 100644 --- a/payloads/v10/auditLog.ts +++ b/payloads/v10/auditLog.ts @@ -469,6 +469,11 @@ export type APIAuditLogChangeKeyRulesChannelId = AuditLogChangeData<'rules_chann */ export type APIAuditLogChangeKeyPublicUpdatesChannelId = AuditLogChangeData<'public_updates_channel_id', string>; +/** + * Returned when a guild's safety_alerts_channel_id is changed + */ +export type APIAuditLogChangeKeySafetyAlertsChannelId = AuditLogChangeData<'safety_alerts_channel_id', string>; + /** * Returned when a guild's mfa_level is changed */ diff --git a/payloads/v10/autoModeration.ts b/payloads/v10/autoModeration.ts index 1f85c6c6..e2b1c414 100644 --- a/payloads/v10/autoModeration.ts +++ b/payloads/v10/autoModeration.ts @@ -118,6 +118,12 @@ export interface APIAutoModerationRuleTriggerMetadata { * Associated trigger type: {@link AutoModerationRuleTriggerType.MentionSpam} */ mention_total_limit?: number; + /** + * Whether to automatically detect mention raids + * + * Associated trigger type: {@link AutoModerationRuleTriggerType.MentionSpam} + */ + mention_raid_protection_enabled?: boolean; } /** diff --git a/payloads/v10/guild.ts b/payloads/v10/guild.ts index bc2c9a63..9b995d3e 100644 --- a/payloads/v10/guild.ts +++ b/payloads/v10/guild.ts @@ -276,6 +276,10 @@ export interface APIGuild extends APIPartialGuild { * The type of Student Hub the guild is */ hub_type: GuildHubType | null; + /** + * The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord + */ + safety_alerts_channel_id: Snowflake | null; } /** @@ -493,6 +497,10 @@ export enum GuildFeature { * Guild has access to create private threads */ PrivateThreads = 'PRIVATE_THREADS', + /** + * Guild has disabled alerts for join raids in the configured safety alerts channel + */ + RaidAlertsDisabled = 'RAID_ALERTS_DISABLED', RelayEnabled = 'RELAY_ENABLED', /** * Guild is able to set role icons diff --git a/payloads/v9/auditLog.ts b/payloads/v9/auditLog.ts index dac3a350..e2c2cd57 100644 --- a/payloads/v9/auditLog.ts +++ b/payloads/v9/auditLog.ts @@ -469,6 +469,11 @@ export type APIAuditLogChangeKeyRulesChannelId = AuditLogChangeData<'rules_chann */ export type APIAuditLogChangeKeyPublicUpdatesChannelId = AuditLogChangeData<'public_updates_channel_id', string>; +/** + * Returned when a guild's safety_alerts_channel_id is changed + */ +export type APIAuditLogChangeKeySafetyAlertsChannelId = AuditLogChangeData<'safety_alerts_channel_id', string>; + /** * Returned when a guild's mfa_level is changed */ diff --git a/payloads/v9/autoModeration.ts b/payloads/v9/autoModeration.ts index 1f85c6c6..e2b1c414 100644 --- a/payloads/v9/autoModeration.ts +++ b/payloads/v9/autoModeration.ts @@ -118,6 +118,12 @@ export interface APIAutoModerationRuleTriggerMetadata { * Associated trigger type: {@link AutoModerationRuleTriggerType.MentionSpam} */ mention_total_limit?: number; + /** + * Whether to automatically detect mention raids + * + * Associated trigger type: {@link AutoModerationRuleTriggerType.MentionSpam} + */ + mention_raid_protection_enabled?: boolean; } /** diff --git a/payloads/v9/guild.ts b/payloads/v9/guild.ts index 504bebc7..b7384727 100644 --- a/payloads/v9/guild.ts +++ b/payloads/v9/guild.ts @@ -276,6 +276,10 @@ export interface APIGuild extends APIPartialGuild { * The type of Student Hub the guild is */ hub_type: GuildHubType | null; + /** + * The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord + */ + safety_alerts_channel_id: Snowflake | null; } /** @@ -485,6 +489,10 @@ export enum GuildFeature { * Guild has access to create private threads */ PrivateThreads = 'PRIVATE_THREADS', + /** + * Guild has disabled alerts for join raids in the configured safety alerts channel + */ + RaidAlertsDisabled = 'RAID_ALERTS_DISABLED', RelayEnabled = 'RELAY_ENABLED', /** * Guild is able to set role icons diff --git a/rest/v10/guild.ts b/rest/v10/guild.ts index 29431277..c8cff2de 100644 --- a/rest/v10/guild.ts +++ b/rest/v10/guild.ts @@ -306,6 +306,10 @@ export interface RESTPatchAPIGuildJSONBody { * Whether the boosts progress bar should be enabled. */ premium_progress_bar_enabled?: boolean | undefined; + /** + * The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord + */ + safety_alerts_channel_id?: Snowflake | null | undefined; } /** diff --git a/rest/v9/guild.ts b/rest/v9/guild.ts index 879636c9..8dfa29f8 100644 --- a/rest/v9/guild.ts +++ b/rest/v9/guild.ts @@ -306,6 +306,10 @@ export interface RESTPatchAPIGuildJSONBody { * Whether the boosts progress bar should be enabled. */ premium_progress_bar_enabled?: boolean | undefined; + /** + * The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord + */ + safety_alerts_channel_id?: Snowflake | null | undefined; } /**