mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
types(threadchannel): fix autoArchiveDuration types (#7817)
This commit is contained in:
6
typings/index.d.ts
vendored
6
typings/index.d.ts
vendored
@@ -2631,7 +2631,7 @@ export class Util extends null {
|
|||||||
): Promise<{ id: Snowflake; position: number }[]>;
|
): Promise<{ id: Snowflake; position: number }[]>;
|
||||||
/** @deprecated This will be removed in the next major version. */
|
/** @deprecated This will be removed in the next major version. */
|
||||||
public static splitMessage(text: string, options?: SplitOptions): string[];
|
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 {
|
export class Formatters extends null {
|
||||||
@@ -5757,7 +5757,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;
|
||||||
}
|
}
|
||||||
@@ -5903,7 +5903,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;
|
||||||
|
|||||||
Reference in New Issue
Block a user