From 62022af68300b506d75b4c86d2e26145f85e9b57 Mon Sep 17 00:00:00 2001 From: amy Date: Mon, 4 Nov 2024 15:20:25 +0330 Subject: [PATCH] nvm im just that retarded --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index c4c74c2..e393ee2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -82,7 +82,6 @@ client.on(Events.ClientReady, async () => { client.on(Events.MessageCreate, async (message) => { if (message.author.bot) return; - if (!message.reference) return; if (message.content.startsWith("!strikecmd")){ const thing = message.content.split(" ") if (thing.length == 1){ @@ -114,6 +113,7 @@ client.on(Events.MessageCreate, async (message) => { await (await client.channels.fetch(config.publiclog) as DMChannel).send("user " + memberId.user.globalName + "got a new strike by " + message.author.globalName); } } + if (!message.reference) return; if (message.content !== "!strike") return; await strike(message) })