add permission check

This commit is contained in:
Jan 2022-11-07 22:02:28 +01:00
parent 6d5b91d07f
commit 456090ae51
Signed by: Lea
GPG key ID: 5D5E18ACB990F57A

View file

@ -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) {