Skip to content

Commit 27a9516

Browse files
committed
Removed duplicates.
1 parent 8554313 commit 27a9516

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/BetterEmbed.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ class BetterEmbed extends MessageEmbed {
8383
if (this.title && this.title.length > limits.title) throw new RangeError(`embed.title is too long (${limits.title}).`);
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}).`);
86-
if (this.title && this.title.length > limits.title) throw new RangeError(`embed.title is too long (${limits.title}).`);
8786
if (this.fields?.length > limits.fields.size) throw new RangeError(`Too much fields (${limits.fields.size}).`);
8887
this.fields.forEach(field => {
8988
if (field.name?.length > limits.fields.name) throw new RangeError(`embed.fields[${this.fields.indexOf(field)}].name is too long (${limits.fields.name}).`);

0 commit comments

Comments
 (0)