From e6fa1d067fcc7473d1e9e2f2272e3bc0204e6815 Mon Sep 17 00:00:00 2001 From: Isaac Date: Sun, 21 Mar 2021 23:10:37 +0000 Subject: [PATCH] Permissions --- src/commands/_settings.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/_settings.js b/src/commands/_settings.js index 63a7640..2bef7c0 100644 --- a/src/commands/_settings.js +++ b/src/commands/_settings.js @@ -8,6 +8,7 @@ module.exports = class SettingsCommand extends Command { slash: false, name: i18n('commands.settings.name'), description: i18n('commands.settings.description'), + permissions: ['MANAGE_GUILD'] }); } @@ -16,6 +17,6 @@ module.exports = class SettingsCommand extends Command { let settings = await guild.settings; const i18n = this.client.i18n.get(settings.locale); - message.channel.send('Settings!'); + channel.send('Settings!'); } }; \ No newline at end of file