mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-23 01:05:30 +01:00
User changing config must be owner
This commit is contained in:
parent
2f0acaa858
commit
9e1d656e52
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue