mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
docs(MessageEmbed): document the constructor (#4077)
This commit is contained in:
@@ -7,6 +7,13 @@ const Util = require('../util/Util');
|
|||||||
* Represents an embed in a message (image/video preview, rich embed, etc.)
|
* Represents an embed in a message (image/video preview, rich embed, etc.)
|
||||||
*/
|
*/
|
||||||
class MessageEmbed {
|
class MessageEmbed {
|
||||||
|
/**
|
||||||
|
* @name MessageEmbed
|
||||||
|
* @kind constructor
|
||||||
|
* @memberof MessageEmbed
|
||||||
|
* @param {MessageEmbed|Object} [data={}] MessageEmbed to clone or raw embed data
|
||||||
|
*/
|
||||||
|
|
||||||
constructor(data = {}, skipValidation = false) {
|
constructor(data = {}, skipValidation = false) {
|
||||||
this.setup(data, skipValidation);
|
this.setup(data, skipValidation);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user