Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types(threadchannel): fix autoArchiveDuration types #7817

Merged
merged 1 commit into from Apr 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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