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;
}
if (msg.author.id !== msg.guild!.owner!.id) {
await msg.channel.send('not authorized');
return;
}
switch (setting) {
case 'prefix': {
const newPrefix = args[1];