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
d.js toolkit
d.js toolkit2d 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! - Marked as resolved by OP
Auth
Auth2d ago
but idk how can i know if someone manually removes it
Kinect3000
Kinect30002d ago
Either use the audit log create event (requires perm) or guild members update event (requires intent)
treble/luna
treble/luna2d ago
(note that the event does not fire when a timeout expires)
Auth
Auth2d ago
well can you help me building logic for first case?? like i am storing the time for user is timeout oh
d.js docs
d.js docs2d ago
:guide: Popular Topics: Working with Audit Logs read more
Auth
Auth2d ago
should i store current timestamps too aight
Want results from more Discord servers?
Add your server