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