From 9e1d656e520b88a9c88f3ac6ebfd73843cc821f1 Mon Sep 17 00:00:00 2001 From: Max Isom Date: Sat, 14 Mar 2020 21:57:28 -0500 Subject: [PATCH] User changing config must be owner --- src/commands/config.ts | 5 +++++ 1 file changed, 5 insertions(+) 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];