Add convenience function RichEmbed.addBlankField (#1139)

This commit is contained in:
Alexander
2017-02-08 18:17:13 +01:00
committed by Amish Shah
parent 7c8f534a38
commit cc3e7b26b1

View File

@@ -150,6 +150,15 @@ class RichEmbed {
return this;
}
/**
* Convenience function for `<RichEmbed>.addField('\u200B', '\u200B', inline)`.
* @param {boolean} [inline=false] Set the field to display inline
* @returns {RichEmbed} This embed
*/
addBlankField(inline = false) {
return this.addField('\u200B', '\u200B', inline);
}
/**
* Set the thumbnail of this embed
* @param {string} url The URL of the thumbnail