You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(this.title&&this.title.length>BetterEmbed.limits.title)thrownewRangeError(`embed.title is too long (${BetterEmbed.limits.title}).`);
56
+
if(this.author?.name&&this.author.name.length>BetterEmbed.limits.author.name)thrownewRangeError(`embed.author.name is too long (${BetterEmbed.limits.author.name}).`);
57
+
if(this.description&&this.description.length>BetterEmbed.limits.description)thrownewRangeError(`embed.description is too long (${BetterEmbed.limits.description}).`);
58
+
if(this.title&&this.title.length>BetterEmbed.limits.title)thrownewRangeError(`embed.title is too long (${BetterEmbed.limits.title}).`);
59
+
if(this.fields?.length>BetterEmbed.limits.fields.size)thrownewRangeError(`Too much fields is too long (${BetterEmbed.limits.fields.size}).`);
60
+
this.fields.forEach(field=>{
61
+
if(field.name?.length>BetterEmbed.limits.fields.name)thrownewRangeError(`embed.fields[${this.fields.indexOf(field)}].name is too long (${BetterEmbed.limits.fields.name}).`);
62
+
if(field.value?.length>BetterEmbed.limits.fields.value)thrownewRangeError(`embed.fields[${this.fields.indexOf(field)}].value is too long (${BetterEmbed.limits.fields.value}).`);
0 commit comments