#(reading 'member')

8 messages · Page 1 of 1 (latest)

ember plover
#

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

hollow spearBOT
#

ReferenceError: "x" is not defined: learn more
TypeError: Cannot read properties of undefined/null (reading "x"): learn more

severe ferry
#

interaction is undefined

#

console log interaction

#

Show your command handler

eager halo
#

Can you show the full error stack please?

#

And bot.js line 56 is this last one in the interactionCreate listener?

eager halo
#

There you have it. You for some reason run your function for when an interaction happens there without passing any parameters. Which is probably due to you calling it register but it not really doing the register part. execute or run would be better names for what it does