Skip to content

Commit

Permalink
types(threadchannel): fix autoArchiveDuration types (#7817)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImRodry committed Apr 19, 2022
1 parent b9802f4 commit 7afcd95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions typings/index.d.ts
Expand Up @@ -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<ThreadAutoArchiveDuration, 60>;
}

export class Formatters extends null {
Expand Down Expand Up @@ -5757,7 +5757,7 @@ export type StageInstanceResolvable = StageInstance | Snowflake;

export interface StartThreadOptions {
name: string;
autoArchiveDuration?: ThreadAutoArchiveDuration;
autoArchiveDuration?: ThreadAutoArchiveDuration | 'MAX';
reason?: string;
rateLimitPerUser?: number;
}
Expand Down Expand Up @@ -5903,7 +5903,7 @@ export interface ThreadCreateOptions<AllowedThreadType> extends StartThreadOptio
export interface ThreadEditData {
name?: string;
archived?: boolean;
autoArchiveDuration?: ThreadAutoArchiveDuration;
autoArchiveDuration?: ThreadAutoArchiveDuration | 'MAX';
rateLimitPerUser?: number;
locked?: boolean;
invitable?: boolean;
Expand Down

0 comments on commit 7afcd95

Please sign in to comment.