mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-21 05:53:30 +01:00
types(MessageEditOptions): Correct attachments type (#9874)
types(MessageEditOptions): fix `attachments` type Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
6
packages/discord.js/typings/index.d.ts
vendored
6
packages/discord.js/typings/index.d.ts
vendored
@@ -6003,9 +6003,13 @@ export interface MessageCreateOptions extends BaseMessageOptions {
|
||||
export type GuildForumThreadMessageCreateOptions = BaseMessageOptions &
|
||||
Pick<MessageCreateOptions, 'flags' | 'stickers'>;
|
||||
|
||||
export interface MessageEditAttachmentData {
|
||||
id: Snowflake;
|
||||
}
|
||||
|
||||
export interface MessageEditOptions extends Omit<BaseMessageOptions, 'content'> {
|
||||
content?: string | null;
|
||||
attachments?: JSONEncodable<AttachmentPayload>[];
|
||||
attachments?: (Attachment | MessageEditAttachmentData)[];
|
||||
flags?: BitFieldResolvable<Extract<MessageFlagsString, 'SuppressEmbeds'>, MessageFlags.SuppressEmbeds>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user