From 7afcd9594a5706526be20cb26f0de388b094c1b4 Mon Sep 17 00:00:00 2001 From: Rodry <38259440+ImRodry@users.noreply.github.com> Date: Tue, 19 Apr 2022 14:54:39 +0100 Subject: [PATCH] types(threadchannel): fix autoArchiveDuration types (#7817) --- typings/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 90eff1c31330..e55baea8f260 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -2631,7 +2631,7 @@ export class Util extends null { ): Promise<{ id: Snowflake; position: number }[]>; /** @deprecated This will be removed in the next major version. */ public static splitMessage(text: string, options?: SplitOptions): string[]; - public static resolveAutoArchiveMaxLimit(guild: Guild): number; + public static resolveAutoArchiveMaxLimit(guild: Guild): Exclude; } export class Formatters extends null { @@ -5757,7 +5757,7 @@ export type StageInstanceResolvable = StageInstance | Snowflake; export interface StartThreadOptions { name: string; - autoArchiveDuration?: ThreadAutoArchiveDuration; + autoArchiveDuration?: ThreadAutoArchiveDuration | 'MAX'; reason?: string; rateLimitPerUser?: number; } @@ -5903,7 +5903,7 @@ export interface ThreadCreateOptions extends StartThreadOptio export interface ThreadEditData { name?: string; archived?: boolean; - autoArchiveDuration?: ThreadAutoArchiveDuration; + autoArchiveDuration?: ThreadAutoArchiveDuration | 'MAX'; rateLimitPerUser?: number; locked?: boolean; invitable?: boolean;