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));