mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
types(ThreadChannel): fix autoArchiveDuration types (#7816)
This commit is contained in:
6
packages/discord.js/typings/index.d.ts
vendored
6
packages/discord.js/typings/index.d.ts
vendored
@@ -2576,7 +2576,7 @@ export class Util extends null {
|
||||
route: string,
|
||||
reason?: string,
|
||||
): Promise<{ id: Snowflake; position: number }[]>;
|
||||
public static resolveAutoArchiveMaxLimit(guild: Guild): number;
|
||||
public static resolveAutoArchiveMaxLimit(guild: Guild): Exclude<ThreadAutoArchiveDuration, 60>;
|
||||
}
|
||||
|
||||
export class Components extends null {
|
||||
@@ -5115,7 +5115,7 @@ export type StageInstanceResolvable = StageInstance | Snowflake;
|
||||
|
||||
export interface StartThreadOptions {
|
||||
name: string;
|
||||
autoArchiveDuration?: ThreadAutoArchiveDuration;
|
||||
autoArchiveDuration?: ThreadAutoArchiveDuration | 'MAX';
|
||||
reason?: string;
|
||||
rateLimitPerUser?: number;
|
||||
}
|
||||
@@ -5223,7 +5223,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;
|
||||
|
||||
Reference in New Issue
Block a user