How to make modlogging when user got timeout and unmute(remove timeout) using audit log events
I want to make a modlogging system when user got timeout and unmute and the bot have to send log in a specific channel using audit log events
42 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 OPLog the event : guildAuditLogEntryCreate
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 also use the voiceStateUpdate
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.
What is the event for timeout and unmute I can't get that
I believe for timeout you can get it in the guildMemberUpdate
But i'm sure you getting it in the log
I already tried the guildMemberUpdate event , I want to log the particular timeout and remove timeout event , so is there any particular data entry for it
You can remove it with the <guildmember>.timeout(null,reason)
Just listen to the events and look which one trigger.
I already have timeout, unmute commands , but I don't know the logging functions
When someone getting muted, in the auditlog you have an executor and a target
So then
I got this @Axiprime
![No description](https://cdn.answeroverflow.com/1186512296311275590/Screenshot_20231219-090550.png)
Now I want to log this so what should I do
Add a listener to this event
log what happen when you mute someone
You get all the info
What kind of
guildAuditLogEntryCreate is the event