From 6b9769abebfc69b296ad1ac3ad086b912b8a04ff Mon Sep 17 00:00:00 2001 From: Regalijan <72576136+Regalijan@users.noreply.github.com> Date: Tue, 16 Jul 2024 16:55:21 -0400 Subject: [PATCH] .(action)Listener -> .on/.off --- shard.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shard.ts b/shard.ts index e7ff78d..269a47a 100644 --- a/shard.ts +++ b/shard.ts @@ -62,11 +62,11 @@ bot.login().catch((e) => { }); process.on("enableDebug", async function () { - bot.addListener("debug", logDebug); + bot.on("debug", logDebug); }); process.on("disableDebug", async function () { - bot.removeListener("debug", logDebug); + bot.off("debug", logDebug); }); const mongo = db.db("bot");