mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
types(MessageEmbed): allow APIEmbed type (#6629)
This commit is contained in:
@@ -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<MessageEmbedFooter>} [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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user