mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 18:55:28 +00:00
add permission check
This commit is contained in:
parent
6d5b91d07f
commit
456090ae51
|
@ -262,6 +262,9 @@ export default {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
case "config": {
|
case "config": {
|
||||||
|
if (!(await isBotManager(message)))
|
||||||
|
return message.reply(NO_MANAGER_MSG);
|
||||||
|
|
||||||
const [_, configKey, newVal]: (string | undefined)[] = args;
|
const [_, configKey, newVal]: (string | undefined)[] = args;
|
||||||
|
|
||||||
if (!configKey) {
|
if (!configKey) {
|
||||||
|
|
Loading…
Reference in a new issue