Skip to content

Commit 7afcd95

Browse files
authoredApr 19, 2022
types(threadchannel): fix autoArchiveDuration types (#7817)
1 parent b9802f4 commit 7afcd95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎typings/index.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2631,7 +2631,7 @@ export class Util extends null {
26312631
): Promise<{ id: Snowflake; position: number }[]>;
26322632
/** @deprecated This will be removed in the next major version. */
26332633
public static splitMessage(text: string, options?: SplitOptions): string[];
2634-
public static resolveAutoArchiveMaxLimit(guild: Guild): number;
2634+
public static resolveAutoArchiveMaxLimit(guild: Guild): Exclude<ThreadAutoArchiveDuration, 60>;
26352635
}
26362636

26372637
export class Formatters extends null {
@@ -5757,7 +5757,7 @@ export type StageInstanceResolvable = StageInstance | Snowflake;
57575757

57585758
export interface StartThreadOptions {
57595759
name: string;
5760-
autoArchiveDuration?: ThreadAutoArchiveDuration;
5760+
autoArchiveDuration?: ThreadAutoArchiveDuration | 'MAX';
57615761
reason?: string;
57625762
rateLimitPerUser?: number;
57635763
}
@@ -5903,7 +5903,7 @@ export interface ThreadCreateOptions<AllowedThreadType> extends StartThreadOptio
59035903
export interface ThreadEditData {
59045904
name?: string;
59055905
archived?: boolean;
5906-
autoArchiveDuration?: ThreadAutoArchiveDuration;
5906+
autoArchiveDuration?: ThreadAutoArchiveDuration | 'MAX';
59075907
rateLimitPerUser?: number;
59085908
locked?: boolean;
59095909
invitable?: boolean;

0 commit comments

Comments
 (0)