mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-06 18:47:20 +00:00
refactor: remove Timeout imports and constructor syntax sugar
This commit is contained in:
parent
62da0a6e34
commit
f607ad424b
20 changed files with 32 additions and 42 deletions
|
@ -1,10 +1,9 @@
|
|||
import { MessagePayload, User } from "discord.js";
|
||||
import { logger } from "../logger.js";
|
||||
import { HOURS, createChunkedMessage, isDiscordAPIError } from "../utils.js";
|
||||
import Timeout = NodeJS.Timeout;
|
||||
|
||||
let dmsDisabled = false;
|
||||
let dmsDisabledTimeout: Timeout;
|
||||
let dmsDisabledTimeout: NodeJS.Timeout;
|
||||
|
||||
function disableDMs(duration) {
|
||||
dmsDisabled = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue