mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 10:45:27 +00:00
add permission check
This commit is contained in:
parent
6d5b91d07f
commit
456090ae51
|
@ -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