error message does not tell me the error

C:\Users\wolfg\OneDrive\Desktop\Karyl-Chan\node_modules\@sapphire\shapeshift\src\validators\ArrayValidator.ts:21
export class ArrayValidator<T extends unknown[], I = T[number]> extends BaseValidator<T> {
^
Error: Received one or more errors // <- what are the errors??
at ArrayValidator.handle (C:\Users\wolfg\OneDrive\Desktop\Karyl-Chan\node_modules\@sapphire\shapeshift\src\validators\ArrayValidator.ts:21:14)
at ArrayValidator.parse (C:\Users\wolfg\OneDrive\Desktop\Karyl-Chan\node_modules\@sapphire\shapeshift\src\validators\BaseValidator.ts:102:48)
at EmbedBuilder.spliceFields (C:\Users\wolfg\OneDrive\Desktop\Karyl-Chan\node_modules\@discordjs\builders\src\messages\embed\Embed.ts:32:31)
at EmbedBuilder.setFields (C:\Users\wolfg\OneDrive\Desktop\Karyl-Chan\node_modules\@discordjs\builders\src\messages\embed\Embed.ts:40:10)
at Object.<anonymous> (C:\Users\wolfg\OneDrive\Desktop\Karyl-Chan\src\Game\Commands\Explore\@Domain.ts:250:18) // <- the file
C:\Users\wolfg\OneDrive\Desktop\Karyl-Chan\node_modules\@sapphire\shapeshift\src\validators\ArrayValidator.ts:21
export class ArrayValidator<T extends unknown[], I = T[number]> extends BaseValidator<T> {
^
Error: Received one or more errors // <- what are the errors??
at ArrayValidator.handle (C:\Users\wolfg\OneDrive\Desktop\Karyl-Chan\node_modules\@sapphire\shapeshift\src\validators\ArrayValidator.ts:21:14)
at ArrayValidator.parse (C:\Users\wolfg\OneDrive\Desktop\Karyl-Chan\node_modules\@sapphire\shapeshift\src\validators\BaseValidator.ts:102:48)
at EmbedBuilder.spliceFields (C:\Users\wolfg\OneDrive\Desktop\Karyl-Chan\node_modules\@discordjs\builders\src\messages\embed\Embed.ts:32:31)
at EmbedBuilder.setFields (C:\Users\wolfg\OneDrive\Desktop\Karyl-Chan\node_modules\@discordjs\builders\src\messages\embed\Embed.ts:40:10)
at Object.<anonymous> (C:\Users\wolfg\OneDrive\Desktop\Karyl-Chan\src\Game\Commands\Explore\@Domain.ts:250:18) // <- the file
@Domain.ts at line 250
const SentBattlePreviewMessage = await Send({

content: `||${User}||`,
embeds: [
new EmbedBuilder()
.setTitle(DomainData.name)
.setFields([ // <- this line
const SentBattlePreviewMessage = await Send({

content: `||${User}||`,
embeds: [
new EmbedBuilder()
.setTitle(DomainData.name)
.setFields([ // <- this line
i logged the array i pass into .setFields logged result: https://pastebin.com/9ymjsc78 i am assuming the
{
name: "__Enemies__",
value: ...
}
{
name: "__Enemies__",
value: ...
}
field exceeds the length for embed fields but i wish the error could've done its job and actually told me the error
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
1 Reply
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View