Event Properties missing?
Hello, I have gotten essentially all the base components of my bot to work at this point, but when booting up the only thing that runs into trouble now is the event I have. The loader says that it is missing a property from the template, but from what I can tell there does not seem to be anything missing, have I written something incorrectly in the template or event?
The event is intended to detect when a user completes the Discord Onboarding and then give them a basic role if they have not already been given another one of the main roles.
7 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!
- ✅
Marked as resolved by OPTemplate:
Loader:
It's Events.GuildMemberUpdate
A capital G fixed it, though why does the documentation use a lowercase g?
Enum members are always PascalCase, and the event name is guildMemberUpdate