User changing config must be owner

This commit is contained in:
Max Isom 2020-03-14 21:57:28 -05:00
parent 2f0acaa858
commit 9e1d656e52

View file

@ -30,6 +30,11 @@ export default class implements Command {
return; return;
} }
if (msg.author.id !== msg.guild!.owner!.id) {
await msg.channel.send('not authorized');
return;
}
switch (setting) { switch (setting) {
case 'prefix': { case 'prefix': {
const newPrefix = args[1]; const newPrefix = args[1];