Help fr

Error fetching leaderboard: CombinedError (3) Received one or more errors 1 ExpectedValidationError > s.literal(V)
| Expected values to be equals | | Expected: | | null | | Received: | | '88e1fd' 2 ValidationError > s.number | Expected a number primitive | | Received: | | '88e1fd' 3 ValidationError > s.tuple(T) | Expected an array | | Received: | | '88e1fd' idk what im doing wrong
7 Replies
d.js toolkit
d.js toolkit16mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
group
groupOP16mo ago
const lb = new EmbedBuilder() .setTitle('Leaderboard') .setDescription(lbd) .setColor('88e1fd'); thats where the issue is occuring ik the color is correect because it works for rest of my code
and
and16mo ago
the setColor method needs a valid hex number and this one isn't do .setColor(0x88e1fd) instead
group
groupOP16mo ago
ohhh ok ty its because on my other code the .setColor still worked without the hex being valid
and
and16mo ago
that's weird, that shouldn't work
group
groupOP16mo ago
😭 ye but it did o9k irt works now ty
and
and16mo ago
👍
Want results from more Discord servers?
Add your server