mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +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.)
|
||||
*/
|
||||
class MessageEmbed {
|
||||
/**
|
||||
* @name MessageEmbed
|
||||
* @kind constructor
|
||||
* @memberof MessageEmbed
|
||||
* @param {MessageEmbed|Object} [data={}] MessageEmbed to clone or raw embed data
|
||||
*/
|
||||
|
||||
constructor(data = {}, skipValidation = false) {
|
||||
this.setup(data, skipValidation);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user