Skip to content

Commit

Permalink
Add convenience function RichEmbed.addBlankField (#1139)
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamakans authored and amishshah committed Feb 8, 2017
1 parent 7c8f534 commit cc3e7b2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/structures/RichEmbed.js
Expand Up @@ -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
Expand Down

0 comments on commit cc3e7b2

Please sign in to comment.