Fix incorrect permission check

master
Dragory 2018-02-18 21:07:26 +02:00
parent 2bb4aec249
commit 6233e53fe4
1 changed files with 1 additions and 1 deletions

View File

@ -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;