From c6966c38ff1c675fdc887b9317d4fd1564a69f4a Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Sun, 8 May 2022 14:53:09 +0000 Subject: [PATCH] fix: 3/7 day archive dont need boost. Closes #2188 --- plugins/permissions/src/channels/editChannel.ts | 14 -------------- types/shared.ts | 4 ---- 2 files changed, 18 deletions(-) diff --git a/plugins/permissions/src/channels/editChannel.ts b/plugins/permissions/src/channels/editChannel.ts index 2e855fc80..37da2a285 100644 --- a/plugins/permissions/src/channels/editChannel.ts +++ b/plugins/permissions/src/channels/editChannel.ts @@ -100,20 +100,6 @@ export default function editChannel(bot: BotWithCache) { channel, requiredPerms, ); - - if (options.autoArchiveDuration) { - if (guild) { - if ( - !guild.toggles.has( - options.autoArchiveDuration === 4320 ? "threeDayThreadArchive" : "sevenDayThreadArchive", - ) - ) { - throw new Error( - "The 3 day and 7 day archive durations require the server to be boosted", - ); - } - } - } } return await editChannelOld(channelId, options, reason); diff --git a/types/shared.ts b/types/shared.ts index 7e9003560..6335bf7b9 100644 --- a/types/shared.ts +++ b/types/shared.ts @@ -205,10 +205,6 @@ export enum GuildFeatures { MonetizationEnabled = "MONETIZATION_ENABLED", /** Guild has increased custom sticker slots */ MoreStickers = "MORE_STICKERS", - /** Guild has access to the three day archive time for threads */ - ThreeDayThreadArchive = "THREE_DAY_THREAD_ARCHIVE", - /** Guild has access to the seven day archive time for threads */ - SevenDayThreadArchive = "SEVEN_DAY_THREAD_ARCHIVE", /** Guild has access to create private threads */ PrivateThreads = "PRIVATE_THREADS", /** Guild is able to set role icons */