mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
feat(Attachment): add flags (#9686)
* feat(Attachment): add `flags` * fix: import * fix: flags casing Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> --------- Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
9
packages/discord.js/typings/index.d.ts
vendored
9
packages/discord.js/typings/index.d.ts
vendored
@@ -166,6 +166,7 @@ import {
|
||||
APIGuildOnboardingPrompt,
|
||||
APIGuildOnboardingPromptOption,
|
||||
GuildOnboardingPromptType,
|
||||
AttachmentFlags,
|
||||
} from 'discord-api-types/v10';
|
||||
import { ChildProcess } from 'node:child_process';
|
||||
import { EventEmitter } from 'node:events';
|
||||
@@ -2070,6 +2071,7 @@ export class Attachment {
|
||||
public description: string | null;
|
||||
public duration: number | null;
|
||||
public ephemeral: boolean;
|
||||
public flags: AttachmentFlagsBitField;
|
||||
public height: number | null;
|
||||
public id: Snowflake;
|
||||
public name: string;
|
||||
@@ -2082,6 +2084,13 @@ export class Attachment {
|
||||
public toJSON(): unknown;
|
||||
}
|
||||
|
||||
export type AttachmentFlagsString = keyof typeof AttachmentFlags;
|
||||
|
||||
export class AttachmentFlagsBitField extends BitField<AttachmentFlagsString> {
|
||||
public static Flags: Record<AttachmentFlagsString, number>;
|
||||
public static resolve(bit?: BitFieldResolvable<AttachmentFlagsString, number>): number;
|
||||
}
|
||||
|
||||
export class MessageCollector extends Collector<Snowflake, Message, [Collection<Snowflake, Message>]> {
|
||||
public constructor(channel: TextBasedChannel, options?: MessageCollectorOptions);
|
||||
private _handleChannelDeletion(channel: NonThreadGuildBasedChannel): void;
|
||||
|
||||
Reference in New Issue
Block a user