From cc3e7b26b1b3c331672e03f935274246212a8526 Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 8 Feb 2017 18:17:13 +0100 Subject: [PATCH] Add convenience function RichEmbed.addBlankField (#1139) --- src/structures/RichEmbed.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/structures/RichEmbed.js b/src/structures/RichEmbed.js index c8c504fb12e4..1592799ddc17 100644 --- a/src/structures/RichEmbed.js +++ b/src/structures/RichEmbed.js @@ -150,6 +150,15 @@ class RichEmbed { return this; } + /** + * Convenience function for `.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