How can i detect someone timeout got removed?
i wanna delete the user from the db whos timeout gets removed, till i know only 2 possiblity exists of timeout getting removed
- timeout period got over
- someone manually removed it
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 OPbut idk how can i know if someone manually removes it
Either use the audit log create event (requires perm) or guild members update event (requires intent)
(note that the event does not fire when a timeout expires)
well can you help me building logic for first case??
like i am storing the time for user is timeout
oh
should i store current timestamps too
aight