From 749b8bb9407cb611f2c0f182d4548d323420d4cf Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Sun, 7 May 2023 10:34:48 +0700 Subject: [PATCH] feat: Safety alerts channel and mention raid protection (update) --- src/structures/Guild.js | 3 ++- typings/index.d.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index da5ad84..748ce56 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -255,6 +255,7 @@ class Guild extends AnonymousGuild { * * MORE_STICKERS * * THREE_DAY_THREAD_ARCHIVE * * SEVEN_DAY_THREAD_ARCHIVE + * * RAID_ALERTS_DISABLED * * PRIVATE_THREADS * * ROLE_ICONS * * ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE @@ -1362,7 +1363,7 @@ class Guild extends AnonymousGuild { * @example * // Edit the guild safety alerts channel * guild.setSafetyAlertsChannel(channel) - * .then(updated => console.log(`Updated guild safety alerts channel to ${guild.safetyAlertsChannel.name}`)) + * .then(updated => console.log(`Updated guild safety alerts channel to ${updated.safetyAlertsChannel.name}`)) * .catch(console.error); */ setSafetyAlertsChannel(safetyAlertsChannel, reason) { diff --git a/typings/index.d.ts b/typings/index.d.ts index fd656ed..8a601ec 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -6375,7 +6375,7 @@ export type GuildFeatures = | 'THREE_DAY_THREAD_ARCHIVE' | 'SEVEN_DAY_THREAD_ARCHIVE' | 'PRIVATE_THREADS' - | 'RAID_ALERTS_ENABLED' + | 'RAID_ALERTS_DISABLED' | 'ROLE_ICONS' | 'ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE' | 'ROLE_SUBSCRIPTIONS_ENABLED';