feat: Safety alerts channel and mention raid protection (update)

This commit is contained in:
Elysia 2023-05-07 10:34:48 +07:00
parent ae8157302e
commit 749b8bb940
2 changed files with 3 additions and 2 deletions

View File

@ -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) {

2
typings/index.d.ts vendored
View File

@ -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';