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
d.js toolkit
d.js toolkit•3y 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!
Gryphon
GryphonOP•3y ago
I couldn't find it on discordjs.guide.
Looped
Looped•3y ago
Can you explain what you mean by "Where can I find all the events"? Do you mean like an example of usage?
Gryphon
GryphonOP•3y ago
Yes
Looped
Looped•3y ago
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.
Looped
Looped•3y ago
You can use it just like any other event If you can show any events in your code, I might be able to help.
Gryphon
GryphonOP•3y ago
i understood. thx no need thank you
Looped
Looped•3y ago
Alright once you're done you can mark this as solved!

Did you find this page helpful?