I want to ping a role from config.json with discord.js
Do I have to do it like this
Ex: <@&{congif.ownersRoleid}>
??
22 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Post the full error stack trace, not just the top part!
- Show your code!
- Explain what exactly your issue is.
- Not a discord.js issue? Check out #useful-servers.
- Issue solved? Press the button!yes
Or if you have the role object you can stringify it
But when I write it with the example I erote it don't ping it
what
show how you do it
Gemme a min
it doesnt ping it
Template literals (Template strings)
Template literals are literals delimited with backtick (`) characters, allowing for multi-line strings, string interpolation with embedded expressions, and special constructs called tagged templates.
what is this
thats basic js
becauqe putting your value between {} wont magically make it appear
so betwenn what?
()
or
[]
Read.
` this?
Literally just read
k
i dont understant
can u just tell me where do i put config.ownersRoleid
this is rather basic js
the docs cannot be more clear, it even has examples
just tell tried and didnt work
how did you try
it said ${}
Yes, and backticks
where do i put the backticks
around your string
at this point this is not djs anymore, this is basic js