#Hi, how to get the value of a guildMember.timeout()?
19 messages · Page 1 of 1 (latest)
Documentation suggestion for @manic maple:
GuildMember#communicationDisabledUntil
The time this member's timeout will be removed
^
umm thanks
does it return how many time is left intill unmute?
it gives back a date?
i want a time in milloseconds to be returned
u can use <GuildMember>.communicationDisabledTimestamp - Date.now()
and will will show miliseconds to end of timeout
ok
thx
does it scale up from 0 or down to 0?
so like 5000 down to 0
or 0 to 5000
?
its time in feature so
10 9 8 ...
It is the timestamp of when the timeout expires. It can be in the past as the value is not set to null when the timeout automatically expires, and there is no gateway event emitted when that happens either
does it return milliseconds?
once it is in the past, it will be negative
yeah?