diff --git a/index.ts b/index.ts index 0d64ba9..22a76fe 100644 --- a/index.ts +++ b/index.ts @@ -58,10 +58,10 @@ client.on("messageCreate", async (message) => { const context = [ ...msgs .filter((msg) => { - if (message.webhookId) return false; - if (message.author.bot && msg.author !== msg.author.client.user) + if (msg.webhookId) return false; + if (msg.author.bot && msg.author !== msg.author.client.user) return false; - if (message.content.startsWith("\\")) return false; + if (msg.content.startsWith("\\")) return false; return true; }) .mapValues((msg) => {