mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Fix embed footer text length error (#955)
This commit is contained in:
parent
daa79b7f97
commit
37bfdd154c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue