types(ThreadChannel): fix autoArchiveDuration types (#7816)

This commit is contained in:
Rodry
2022-04-19 14:54:54 +01:00
committed by GitHub
parent 9ef7ffdc6d
commit 08574763eb

View File

@@ -2576,7 +2576,7 @@ export class Util extends null {
route: string, route: string,
reason?: string, reason?: string,
): Promise<{ id: Snowflake; position: number }[]>; ): Promise<{ id: Snowflake; position: number }[]>;
public static resolveAutoArchiveMaxLimit(guild: Guild): number; public static resolveAutoArchiveMaxLimit(guild: Guild): Exclude<ThreadAutoArchiveDuration, 60>;
} }
export class Components extends null { export class Components extends null {
@@ -5115,7 +5115,7 @@ export type StageInstanceResolvable = StageInstance | Snowflake;
export interface StartThreadOptions { export interface StartThreadOptions {
name: string; name: string;
autoArchiveDuration?: ThreadAutoArchiveDuration; autoArchiveDuration?: ThreadAutoArchiveDuration | 'MAX';
reason?: string; reason?: string;
rateLimitPerUser?: number; rateLimitPerUser?: number;
} }
@@ -5223,7 +5223,7 @@ export interface ThreadCreateOptions<AllowedThreadType> extends StartThreadOptio
export interface ThreadEditData { export interface ThreadEditData {
name?: string; name?: string;
archived?: boolean; archived?: boolean;
autoArchiveDuration?: ThreadAutoArchiveDuration; autoArchiveDuration?: ThreadAutoArchiveDuration | 'MAX';
rateLimitPerUser?: number; rateLimitPerUser?: number;
locked?: boolean; locked?: boolean;
invitable?: boolean; invitable?: boolean;