mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix: 3/7 day archive dont need boost. Closes #2188
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user