mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
docs: timestamp of the
This commit is contained in:
parent
0ee5f0a863
commit
600ff6e4a4
1 changed files with 1 additions and 2 deletions
|
@ -4,8 +4,7 @@ import { MAX_TIMEOUT_DURATION } from "../../../data/Mutes";
|
||||||
* Since timeouts have a limited duration (max 28d) but we support mutes longer than that,
|
* Since timeouts have a limited duration (max 28d) but we support mutes longer than that,
|
||||||
* the timeouts are applied for a certain duration at first and then renewed as necessary.
|
* the timeouts are applied for a certain duration at first and then renewed as necessary.
|
||||||
* This function returns the initial end time for a timeout.
|
* This function returns the initial end time for a timeout.
|
||||||
* @param muteTime Time to mute for in ms
|
* @return - Timeout expiry timestamp
|
||||||
* @return - Timestamp of the
|
|
||||||
*/
|
*/
|
||||||
export function getTimeoutExpiryTime(muteExpiresAt: number | null | undefined): number {
|
export function getTimeoutExpiryTime(muteExpiresAt: number | null | undefined): number {
|
||||||
if (muteExpiresAt && muteExpiresAt <= MAX_TIMEOUT_DURATION) {
|
if (muteExpiresAt && muteExpiresAt <= MAX_TIMEOUT_DURATION) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue