chore: deprecated resolveAutoArchiveMaxLimit, MAX option

see my commit in discord.js
This commit is contained in:
March 7th
2022-12-26 18:00:14 +07:00
parent b3d0a859f4
commit 557a77e07b
3 changed files with 8 additions and 8 deletions

View File

@@ -648,13 +648,11 @@ class Util extends null {
/**
* Resolves the maximum time a guild's thread channels should automatcally archive in case of no recent activity.
* @param {Guild} guild The guild to resolve this limit from.
* @deprecated
* @returns {number}
*/
static resolveAutoArchiveMaxLimit({ features }) {
if (features.includes('SEVEN_DAY_THREAD_ARCHIVE')) return 10080;
if (features.includes('THREE_DAY_THREAD_ARCHIVE')) return 4320;
return 1440;
static resolveAutoArchiveMaxLimit() {
return 10080;
}
/**