diff --git a/src/structures/MessageEmbed.js b/src/structures/MessageEmbed.js index 61437720d..557709f0a 100644 --- a/src/structures/MessageEmbed.js +++ b/src/structures/MessageEmbed.js @@ -7,13 +7,6 @@ const Util = require('../util/Util'); * Represents an embed in a message (image/video preview, rich embed, etc.) */ class MessageEmbed { - /** - * @name MessageEmbed - * @kind constructor - * @memberof MessageEmbed - * @param {MessageEmbed|MessageEmbedOptions} [data={}] MessageEmbed to clone or raw embed data - */ - /** * A `Partial` object is a representation of any existing object. * This object contains between 0 and all of the original objects parameters. @@ -37,6 +30,10 @@ class MessageEmbed { * @property {Partial} [footer] The footer of this embed */ + // eslint-disable-next-line valid-jsdoc + /** + * @param {MessageEmbed|MessageEmbedOptions|APIEmbed} [data={}] MessageEmbed to clone or raw embed data + */ constructor(data = {}, skipValidation = false) { this.setup(data, skipValidation); } diff --git a/typings/index.d.ts b/typings/index.d.ts index 1318b873e..21378cfc0 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -29,6 +29,7 @@ import { APIApplicationCommandOption, APIApplicationCommandPermission, APIAuditLogChange, + APIEmbed, APIEmoji, APIInteractionDataResolvedChannel, APIInteractionDataResolvedGuildMember, @@ -1342,7 +1343,7 @@ export class MessageComponentInteraction extends Interaction { } export class MessageEmbed { - public constructor(data?: MessageEmbed | MessageEmbedOptions); + public constructor(data?: MessageEmbed | MessageEmbedOptions | APIEmbed); public author: MessageEmbedAuthor | null; public color: number | null; public readonly createdAt: Date | null; @@ -3283,7 +3284,10 @@ export interface ClientEvents { message: [message: Message]; messageCreate: [message: Message]; messageDelete: [message: Message | PartialMessage]; - messageReactionRemoveAll: [message: Message | PartialMessage, reactions: Collection]; + messageReactionRemoveAll: [ + message: Message | PartialMessage, + reactions: Collection, + ]; messageReactionRemoveEmoji: [reaction: MessageReaction | PartialMessageReaction]; messageDeleteBulk: [messages: Collection]; messageReactionAdd: [reaction: MessageReaction | PartialMessageReaction, user: User | PartialUser];