From 6233e53fe44538a322312dce373fbb3099737d74 Mon Sep 17 00:00:00 2001 From: Dragory Date: Sun, 18 Feb 2018 21:07:26 +0200 Subject: [PATCH] Fix incorrect permission check --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index d325d1d..f6c94b1 100644 --- a/src/main.js +++ b/src/main.js @@ -30,7 +30,7 @@ bot.on('ready', () => { */ bot.on('messageCreate', async msg => { if (! utils.messageIsOnInboxServer(msg)) return; - if (! utils.isStaff(msg)) return; + if (! utils.isStaff(msg.member)) return; if (msg.author.bot) return; if (msg.content.startsWith(config.prefix) || msg.content.startsWith(config.snippetPrefix)) return;