Check timeouts that have been issued
Is there a way to get a list of timeouts for users on a guild similar to Guild.bans?
My specific use case: I need to check if a timeout has been issued for a specific user even if they aren't in the server, which
guild.members.fetch(...)..communicationDisabledUntil !== null
doesn't work for.9 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!i dont think thats possible
You could fetch all the members and then filter using isCommunicationDisabled()
Thanks, I'm mainly needing a way to get this info even if the user isn't in the guild anymore
Oh wait, I misread, you could check audit logs
That might be the way to go
Ty 🙂
you can also store the timeouts yourself
Yeah, audit logs can be a handful so I'd just check when they get timed out and store them somewhere