types: Use ThreadAutoArchiveDuration from discord-api-types (#8145)

This commit is contained in:
Jiralite
2022-06-22 10:23:39 +01:00
committed by GitHub
parent a061233510
commit a3799f9ebb
4 changed files with 9 additions and 15 deletions

View File

@@ -793,22 +793,12 @@ class Message extends Base {
return this.channel.send(data);
}
/**
* A number that is allowed to be the duration (in minutes) of inactivity after which a thread is automatically
* archived. This can be:
* * `60` (1 hour)
* * `1440` (1 day)
* * `4320` (3 days)
* * `10080` (7 days)
* @typedef {number|string} ThreadAutoArchiveDuration
*/
/**
* Options for starting a thread on a message.
* @typedef {Object} StartThreadOptions
* @property {string} name The name of the new thread
* @property {ThreadAutoArchiveDuration} [autoArchiveDuration=this.channel.defaultAutoArchiveDuration] The amount of
* time (in minutes) after which the thread should automatically archive in case of no recent activity
* time after which the thread should automatically archive in case of no recent activity
* @property {string} [reason] Reason for creating the thread
* @property {number} [rateLimitPerUser] The rate limit per user (slowmode) for the thread in seconds
*/