30 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!well, you have to create that function yourself
idk how where
bot.js line 18
well there it is
ik
that
Then why wonder
you have to create that function yourself
how do i make it
should i just copy all of this
thats how to do it but you shouldn't just blindly copy, as you'll get things like this, you should also understand the code
do you know why do i get this ?
because you misspelled functions
You should read the error
i fixed that
but i still have an error
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.
@lunaπ so instead of
'
or "
should i reaplace them with `
?yes, thats basic js
adn this
from " " to `
no because there's no template literal there
again
template literalsa re basic js knowledge
done , so i changed all the
'
to `
but i have this error
well, one of your files doesnt export a function
can you please help me ?
#rules 5, #rules 3 too
all of this is basic js
if you do not have basic js experience, go to #resources and learn js first