fix: 3/7 day archive dont need boost. Closes #2188

This commit is contained in:
Skillz4Killz
2022-05-08 14:53:09 +00:00
committed by GitHub
parent 8281c4693b
commit c6966c38ff
2 changed files with 0 additions and 18 deletions
@@ -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);