@@ -166,6 +166,7 @@ import {
166166 APIGuildOnboardingPrompt ,
167167 APIGuildOnboardingPromptOption ,
168168 GuildOnboardingPromptType ,
169+ AttachmentFlags ,
169170} from 'discord-api-types/v10' ;
170171import { ChildProcess } from 'node:child_process' ;
171172import { EventEmitter } from 'node:events' ;
@@ -2070,6 +2071,7 @@ export class Attachment {
20702071 public description : string | null ;
20712072 public duration : number | null ;
20722073 public ephemeral : boolean ;
2074+ public flags : AttachmentFlagsBitField ;
20732075 public height : number | null ;
20742076 public id : Snowflake ;
20752077 public name : string ;
@@ -2082,6 +2084,13 @@ export class Attachment {
20822084 public toJSON ( ) : unknown ;
20832085}
20842086
2087+ export type AttachmentFlagsString = keyof typeof AttachmentFlags ;
2088+
2089+ export class AttachmentFlagsBitField extends BitField < AttachmentFlagsString > {
2090+ public static Flags : Record < AttachmentFlagsString , number > ;
2091+ public static resolve ( bit ?: BitFieldResolvable < AttachmentFlagsString , number > ) : number ;
2092+ }
2093+
20852094export class MessageCollector extends Collector < Snowflake , Message , [ Collection < Snowflake , Message > ] > {
20862095 public constructor ( channel : TextBasedChannel , options ?: MessageCollectorOptions ) ;
20872096 private _handleChannelDeletion ( channel : NonThreadGuildBasedChannel ) : void ;
0 commit comments