Skip to content

Commit 8554313

Browse files
committed
Fixed error message 'too much fields'.
1 parent 6f985d4 commit 8554313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BetterEmbed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class BetterEmbed extends MessageEmbed {
8484
if (this.author?.name && this.author.name.length > limits.author.name) throw new RangeError(`embed.author.name is too long (${limits.author.name}).`);
8585
if (this.description && this.description.length > limits.description) throw new RangeError(`embed.description is too long (${limits.description}).`);
8686
if (this.title && this.title.length > limits.title) throw new RangeError(`embed.title is too long (${limits.title}).`);
87-
if (this.fields?.length > limits.fields.size) throw new RangeError(`Too much fields is too long (${limits.fields.size}).`);
87+
if (this.fields?.length > limits.fields.size) throw new RangeError(`Too much fields (${limits.fields.size}).`);
8888
this.fields.forEach(field => {
8989
if (field.name?.length > limits.fields.name) throw new RangeError(`embed.fields[${this.fields.indexOf(field)}].name is too long (${limits.fields.name}).`);
9090
if (field.value?.length > limits.fields.value) throw new RangeError(`embed.fields[${this.fields.indexOf(field)}].value is too long (${limits.fields.value}).`);

0 commit comments

Comments
 (0)