File Attachment
How do I attach my
attachment
in the embed after rank.build()
, given that this embed is needed for my my-karma.js
command? I mean when my command is called, it calls an embed from another file where everything is very connected.
my-karma.js:
src/modules/member/controller.js:
2 Replies
- 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 staffReturn both the attachment and embed.
Btw it's better to make the
getMemberTotalKarma
function return only the attachment, build the embed and add the attachment ot it in the command file.