mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-04-12 02:03:55 +02:00
User changing config must be owner
This commit is contained in:
parent
2f0acaa858
commit
9e1d656e52
1 changed files with 5 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue