From ef396290810c172cc585d796a2bca9182e307ca0 Mon Sep 17 00:00:00 2001 From: M1000fr Date: Mon, 16 Sep 2024 15:24:53 +0200 Subject: [PATCH] ref: replace by default node module --- src/index.ts | 2 +- src/utils/wait.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 src/utils/wait.ts diff --git a/src/index.ts b/src/index.ts index ef451ca..5471075 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,7 +3,7 @@ import moment from "moment"; import fs from "node:fs/promises"; import { deleteMessage } from "service/axios"; import { getUserIdFromToken } from "utils/discordId"; -import { wait } from "utils/wait"; +import { setTimeout as wait } from "node:timers/promises"; import { ChannelData } from "./interfaces/channelData"; import { MessageData } from "./interfaces/messageData"; diff --git a/src/utils/wait.ts b/src/utils/wait.ts deleted file mode 100644 index 3b7662b..0000000 --- a/src/utils/wait.ts +++ /dev/null @@ -1 +0,0 @@ -export const wait = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));