aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Isom <[email protected]>2020-03-14 21:57:28 -0500
committerMax Isom <[email protected]>2020-03-14 21:57:28 -0500
commit9e1d656e520b88a9c88f3ac6ebfd73843cc821f1 (patch)
treee40d82f28b317c631458f8e2c8c127244bf5354e /src
parent2f0acaa858a5b76fc4c38b7c1458c5f9e67c657b (diff)
downloadmuse-9e1d656e520b88a9c88f3ac6ebfd73843cc821f1.tar.xz
muse-9e1d656e520b88a9c88f3ac6ebfd73843cc821f1.zip
User changing config must be owner
Diffstat (limited to 'src')
-rw-r--r--src/commands/config.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/commands/config.ts b/src/commands/config.ts
index 597578d..52950fc 100644
--- a/src/commands/config.ts
+++ b/src/commands/config.ts
@@ -30,6 +30,11 @@ export default class implements Command {
return;
}
+ if (msg.author.id !== msg.guild!.owner!.id) {
+ await msg.channel.send('not authorized');
+ return;
+ }
+
switch (setting) {
case 'prefix': {
const newPrefix = args[1];