Why does this shows error?

12 Replies
d.js toolkit
d.js toolkit13mo 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
🩸𓆩ᴠᴀᴍᴘ𓆪
discord.js: 14.7.1
kin.ts
kin.ts13mo ago
you are not calling the function, and show the error instead of just say "shows error"
🩸𓆩ᴠᴀᴍᴘ𓆪
The error says " one or more error was found "
kin.ts
kin.ts13mo ago
screenshot the full error
🩸𓆩ᴠᴀᴍᴘ𓆪
It shows that everytime I use that `iconURL:' part
kin.ts
kin.ts13mo ago
how u define targetUser?
🩸𓆩ᴠᴀᴍᴘ𓆪
I'm on mobile now so can't but that's the error i remember I don't remember exactly but " targetUser " works fine everywhere else except inside iconURL part It shows username when I use user.tag and Id when i use .id But .user.displaAvatarURL doesn't work
kin.ts
kin.ts13mo ago
because u didn't call the function .user.displayAvatarURL()
🩸𓆩ᴠᴀᴍᴘ𓆪
I tried dropping random image url instead of ${targetUser.user.displayAvatarURL} and it works but idk why not with ${targetUser.user.displayAvatarURL} Oh Alright so rest all part is correct?
kin.ts
kin.ts13mo ago
from what i see in ur screenshot, yes
🩸𓆩ᴠᴀᴍᴘ𓆪
Ye thanks man.. I'm still new in all this
Want results from more Discord servers?
Add your server