add permission check
This commit is contained in:
parent
6d5b91d07f
commit
456090ae51
1 changed files with 3 additions and 0 deletions
|
@ -262,6 +262,9 @@ export default {
|
|||
});
|
||||
}
|
||||
case "config": {
|
||||
if (!(await isBotManager(message)))
|
||||
return message.reply(NO_MANAGER_MSG);
|
||||
|
||||
const [_, configKey, newVal]: (string | undefined)[] = args;
|
||||
|
||||
if (!configKey) {
|
||||
|
|
Loading…
Reference in a new issue