Fix embed footer text length error (#955)

This commit is contained in:
Zack Campbell
2016-12-05 19:50:25 -06:00
committed by Schuyler Cebulskie
parent daa79b7f97
commit 37bfdd154c

View File

@@ -175,7 +175,7 @@ class RichEmbed {
* @returns {RichEmbed} This embed
*/
setFooter(text, icon) {
if (text.length > 2048) throw new RangeError('RichEmbed footer text may not exceed 1024 characters.');
if (text.length > 2048) throw new RangeError('RichEmbed footer text may not exceed 2048 characters.');
this.footer = { text, icon_url: icon };
return this;
}