mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix embed footer text length error (#955)
This commit is contained in:
committed by
Schuyler Cebulskie
parent
daa79b7f97
commit
37bfdd154c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user