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;