#Bot doesn't reply but pings user with message.reply

23 messages · Page 1 of 1 (latest)

graceful plover
#

I want the bot to reply but it instead, pings with a comma. I'm not sure if I'm just using the wrong syntax. My Code:
message.reply(res.data.cnt); where message is the executable

dire scrollBOT
#

• 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.

spark junco
#

what's your djs version

#

djs replies use to ping the user like that instead of an inline reply in v12

graceful plover
#

latest i believe

#

14.11

spark junco
#

that's what your console output is?

graceful plover
#

yeah

spark junco
#

do you mind showing a pic of the output when you did npm ls discord.js ?

#

i just want to be sure

graceful plover
#

oh wait you're right

#

the package says 14.11

#

weird

spark junco
#

unfortunately we dont support v12, but you can easily do a clean install to v14

npm r discord.js
npm i discord.js

graceful plover
#

will my code still work like normal?

spark junco
#

not if it's running v12 code

#

you'll need to update your code to v14

frank prairieBOT
#

guide Additional Information: Updating from v13 to v14
read more

graceful plover
#

can i just npm audit fix

spark junco
#

no thats not how it works

#

your code is clearly using v12

graceful plover
#

alright ill go through the docs