mirror of
https://github.com/danbulant/discord.js
synced 2026-06-10 02:02:40 +00:00
docs(MessageEmbed): document the constructor (#4077)
This commit is contained in:
parent
4c2308b4c6
commit
4625881c54
1 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue