From 8985677f7b760d28eb7db872650d4ad3f84c09eb Mon Sep 17 00:00:00 2001 From: Talon Date: Mon, 5 Apr 2021 23:21:47 +0200 Subject: [PATCH] Fix typo --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f7114be..16e60a0 100644 --- a/index.js +++ b/index.js @@ -75,7 +75,7 @@ function registerModules() { } function handleMessage(message) { - if (message.contents.startsWith(process.env.PREFIX)) { + if (message.content.startsWith(process.env.PREFIX)) { const args = message.contents.split(" "); const command = args[0].substr(1, args[0].length); const execution = commandHandlers.get(command);