Member timeout event?

I want to send an automatic message and save some data on a DB when a member get's timed out using the discord timeout function. Is there any event or something that I can use to catch those timeouts??
21 Replies
d.js toolkit
d.js toolkit2y ago
- What's your exact discord.js npm list discord.js and node node -v version? - Post the full error stack trace, not just the top part! - Show your code! - Explain what exactly your issue is. - Not a discord.js issue? Check out #useful-servers. - Issue solved? Press the button!
XurxoMF
XurxoMFOP2y ago
I searched Client events but there is none for this. At least on the old discordjs api
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs2y ago
method GuildMember#isCommunicationDisabled() Whether this member is currently timed out
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
XurxoMF
XurxoMFOP2y ago
hmmm and it's there any way to check for info about the timeout? Moderator who timed out the user, time of the timeout...?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
XurxoMF
XurxoMFOP2y ago
No no, I mean, timed out for 1 day Or 1 week... Detailed info about the timeout
d.js docs
d.js docs2y ago
property GuildMember#communicationDisabledUntil The time this member's timeout will be removed
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
XurxoMF
XurxoMFOP2y ago
Oh, that's enough
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
XurxoMF
XurxoMFOP2y ago
Okee, I'll wait then. Thx a lot ^^ There is a warn event, for "general warnings". Which type of warnings? I mean, ban and kick have their own event There are no more warns or there are?
Булочка | pasha_boez
@xurxomfif mods manually times member, you can check it in audit logs. You can use guildAuditLogEntryCreate event instead of guildMemberUpdate for this and filter events by type
XurxoMF
XurxoMFOP2y ago
ohhhh thats good, I like it Thx a lot ^^ okokok, thx a lot ^^
XurxoMF
XurxoMFOP2y ago
https://discord-api-types.dev/api/discord-api-types-v10/enum/AuditLogEvent Type of the timeout? none of them it's called like that
discord-api-types documentation
discord-api-types - Imagine typings
discord-api-types is a simple Node/Deno module that brings up to date typings for Discord's API
XurxoMF
XurxoMFOP2y ago
dw, I'll investigate
Булочка | pasha_boez
It need to be clarified by practice. I haven't any practice in it
XurxoMF
XurxoMFOP2y ago
Ok, that's enough for me ^^ Thx a lot <a:av_besitos:1114871486419832852>
Want results from more Discord servers?
Add your server