i get this error but i don't know how to fix it

i will post a photo rn
30 Replies
d.js toolkit
d.js toolkit•2y 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!
darius
dariusOP•2y ago
treble/luna
treble/luna•2y ago
well, you have to create that function yourself
darius
dariusOP•2y ago
idk how cryrun where
treble/luna
treble/luna•2y ago
bot.js line 18
darius
dariusOP•2y ago
treble/luna
treble/luna•2y ago
well there it is
darius
dariusOP•2y ago
ik that
treble/luna
treble/luna•2y ago
Then why wonder you have to create that function yourself
darius
dariusOP•2y ago
how do i make it
d.js docs
d.js docs•2y ago
guide Creating Your Bot: Event handling read more
darius
dariusOP•2y ago
should i just copy all of this
treble/luna
treble/luna•2y ago
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
darius
dariusOP•2y ago
do you know why do i get this ?
treble/luna
treble/luna•2y ago
because you misspelled functions You should read the error
darius
dariusOP•2y ago
i fixed that
darius
dariusOP•2y ago
darius
dariusOP•2y ago
but i still have an error
d.js docs
d.js docs•2y ago
mdn 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.
darius
dariusOP•2y ago
@luna🌈 so instead of ' or " should i reaplace them with ` ?
treble/luna
treble/luna•2y ago
yes, thats basic js
darius
dariusOP•2y ago
adn this
darius
dariusOP•2y ago
from " " to `
treble/luna
treble/luna•2y ago
no because there's no template literal there again template literalsa re basic js knowledge
darius
dariusOP•2y ago
done , so i changed all the ' to `
darius
dariusOP•2y ago
darius
dariusOP•2y ago
but i have this error
treble/luna
treble/luna•2y ago
well, one of your files doesnt export a function
darius
dariusOP•2y ago
can you please help me ?
treble/luna
treble/luna•2y ago
#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

Did you find this page helpful?