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
thrownewRangeError(`'embed.fields[${tooLongFields.index}].${name}' is too long: ${this.fields[tooLongFields.index][name].length} (max: ${tooLongFields.limit})`);
188
+
thrownewRangeError(
189
+
`'embed.fields[${tooLongFields.index}].${name}' is too long: ${this.fields[tooLongFields.index][name].length} (max: ${
190
+
tooLongFields.limit
191
+
})`
192
+
);
186
193
}
187
194
}
188
195
}
189
196
190
197
if(this.title&&this.title.length>limits.title)thrownewRangeError(`'embed.title' is too long: ${this.title.length} (max: ${limits.title}).`);
191
-
if(this.author?.name&&this.author.name.length>limits.author.name)thrownewRangeError(`'embed.author.name' is too long: ${this.author.name.length} (max: ${limits.author.name}).`);
192
-
if(this.description&&this.description.length>limits.description)thrownewRangeError(`'embed.description' is too long: ${this.description.length} (max: ${limits.description}).`);
thrownewRangeError(`'embed.description' is too long: ${this.description.length} (max: ${limits.description}).`);
193
202
if(this.fields?.length>limits.fields.size)thrownewRangeError(`Too much fields (${limits.fields.size}).`);
194
203
this.fields.forEach(field=>{
195
-
if(field.name?.length>limits.fields.name)thrownewRangeError(`'embed.fields[${this.fields.indexOf(field)}].name' is too long: ${field.name.length} (max: ${limits.fields.name}).`);
204
+
if(field.name?.length>limits.fields.name)
205
+
thrownewRangeError(`'embed.fields[${this.fields.indexOf(field)}].name' is too long: ${field.name.length} (max: ${limits.fields.name}).`);
196
206
if(field.value?.length>limits.fields.value)
197
207
thrownewRangeError(`'embed.fields[${this.fields.indexOf(field)}].value' is too long: ${field.value.length} (max: ${limits.fields.value}).`);
0 commit comments