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 toolkit3mo 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
Cloud
CloudOP3mo ago
but idk how can i know if someone manually removes it
Kinect3000
Kinect30003mo ago
Either use the audit log create event (requires perm) or guild members update event (requires intent)
treble/luna
treble/luna3mo ago
(note that the event does not fire when a timeout expires)
Cloud
CloudOP3mo 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 docs3mo ago
:guide: Popular Topics: Working with Audit Logs read more
Cloud
CloudOP3mo ago
should i store current timestamps too aight
Want results from more Discord servers?
Add your server