I want to make an audit log to my server.
Where can I find all the events like "MemberAdd" or "MemberBanned" for this?
8 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!I couldn't find it on discordjs.guide.
Can you explain what you mean by "Where can I find all the events"?
Do you mean like an example of usage?
Yes
Well it's called guildMemberAdd and returns a member parameter which is of type GuildMember.
https://old.discordjs.dev/#/docs/discord.js/14.11.0/class/Client?scrollTo=e-guildMemberAdd
Discord.js
Discord.js is a powerful node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
You can use it just like any other event
If you can show any events in your code, I might be able to help.
i understood. thx
no need thank you
Alright once you're done you can mark this as solved!