@@ -441,7 +441,7 @@ export class BaseGuildTextChannel extends TextBasedChannelMixin(GuildChannel) {
441
441
public createWebhook ( name : string , options ?: ChannelWebhookCreateOptions ) : Promise < Webhook > ;
442
442
public fetchInvites ( cache ?: boolean ) : Promise < Collection < string , Invite > > ;
443
443
public setDefaultAutoArchiveDuration (
444
- defaultAutoArchiveDuration : ThreadAutoArchiveDuration ,
444
+ defaultAutoArchiveDuration : ThreadAutoArchiveDuration | 'MAX' ,
445
445
reason ?: string ,
446
446
) : Promise < this> ;
447
447
public setNSFW ( nsfw ?: boolean , reason ?: string ) : Promise < this> ;
@@ -2502,7 +2502,7 @@ export class ThreadChannel extends TextBasedChannelMixin(Channel) {
2502
2502
public fetchStarterMessage ( options ?: BaseFetchOptions ) : Promise < Message > ;
2503
2503
public setArchived ( archived ?: boolean , reason ?: string ) : Promise < ThreadChannel > ;
2504
2504
public setAutoArchiveDuration (
2505
- autoArchiveDuration : ThreadAutoArchiveDuration ,
2505
+ autoArchiveDuration : ThreadAutoArchiveDuration | 'MAX' ,
2506
2506
reason ?: string ,
2507
2507
) : Promise < ThreadChannel > ;
2508
2508
public setInvitable ( invitable ?: boolean , reason ?: string ) : Promise < ThreadChannel > ;
@@ -2628,6 +2628,7 @@ export class Util extends null {
2628
2628
reason ?: string ,
2629
2629
) : Promise < { id : Snowflake ; position : number } [ ] > ;
2630
2630
public static splitMessage ( text : string , options ?: SplitOptions ) : string [ ] ;
2631
+ public static resolveAutoArchiveMaxLimit ( guild : Guild ) : number ;
2631
2632
}
2632
2633
2633
2634
export class Formatters extends null {
@@ -4086,7 +4087,7 @@ export interface ChannelData {
4086
4087
rateLimitPerUser ?: number ;
4087
4088
lockPermissions ?: boolean ;
4088
4089
permissionOverwrites ?: readonly OverwriteResolvable [ ] | Collection < Snowflake , OverwriteResolvable > ;
4089
- defaultAutoArchiveDuration ?: ThreadAutoArchiveDuration ;
4090
+ defaultAutoArchiveDuration ?: ThreadAutoArchiveDuration | 'MAX' ;
4090
4091
rtcRegion ?: string | null ;
4091
4092
videoQualityMode ?: VideoQualityMode | null ;
4092
4093
}
@@ -5882,7 +5883,7 @@ export type TextChannelResolvable = Snowflake | TextChannel;
5882
5883
5883
5884
export type TextBasedChannelResolvable = Snowflake | TextBasedChannel ;
5884
5885
5885
- export type ThreadAutoArchiveDuration = 60 | 1440 | 4320 | 10080 | 'MAX' ;
5886
+ export type ThreadAutoArchiveDuration = 60 | 1440 | 4320 | 10080 ;
5886
5887
5887
5888
export type ThreadChannelResolvable = ThreadChannel | Snowflake ;
5888
5889
0 commit comments