From 60cd96e366487b9a422ecc685b46a2b300c32be1 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sat, 31 Jul 2021 16:38:15 -0400 Subject: Cleanup; Upgraded to Discord.JS v13; More buttons --- commands/setprefix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/setprefix.js') diff --git a/commands/setprefix.js b/commands/setprefix.js index 2bea4bc..6800eea 100644 --- a/commands/setprefix.js +++ b/commands/setprefix.js @@ -23,7 +23,7 @@ module.exports.run = async (client, message, args) => { console.log(`[${moment().format('YYYY-MM-DD HH:mm:ss')}] ${message}`); }; const fs = require('fs'); - if (!message.member.hasPermission('ADMINISTRATOR')) return message.reply('Sorry you need admin to set my prefix'); + if (!message.member.permissions.has('ADMINISTRATOR')) return message.reply('Sorry you need admin to set my prefix'); if (!args[0] || args[0 == 'help']) return message.reply('Usage: setprefix '); const prefixes = JSON.parse(fs.readFileSync('./storage/prefixes.json', 'utf8')); -- cgit v1.2.3