Mentions and/or usernames in embeds
I cant get the embed welome message to return the joining members username. I have tried many ways.
10 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 staffshow your full code and the result
The result looks identical as the .setdescription text. Nothing changes.
My member count also does not work.
you use user but never define it
clearly i am missing something. Thats why i am here. I am new to this, how do i define the user, i did not have to define the member.user.avatarURL.
And i am assuming that means some sort of defining the membercount as well?
you really should know how to define stuff
its basic js
Thank for the help. Glad this is a place to get help when asking humbly.
1. You are using single quotes (') instead of backticks (
). You need to use backticks if you want to use template literals (which allow you to use variables inside your string)
2. As wolvinny said, user is not defined. To get a user's ID, you can do
member.id`
3. Notice how this forum channel name is djs-questions and not js-questions? That's because your issue is NOT related to discord.js, but more to Javascript.... If you have problems with Javascript in the future, please use #other-js-tsThank you
I wanted to thank you again. I’m learning. How to do stuff on my own and your answer was far more helpful. I will make sure I post in the right area I didn’t really.s it was the wrong area. I was able to fix it with your help and it’s working as it should.
No problems!