commit 58bd004c4cb32689e4ea8a8f6c2a0f7558fc22e7
parent a23978554db111ccb7d3751835665c365072e462
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date: Sun, 14 Feb 2021 16:03:45 -0800
Users must be admin to modify settings
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/bot.py b/bot.py
@@ -566,6 +566,9 @@ async def config(ctx, key=None, *args):
embed.description += f"**Countdown Timezone:** UTC-{-1 * channel['timezone']}\n"
else:
embed.description += f"**Countdown Timezone:** UTC+{channel['timezone']}\n"
+ elif (not ctx.message.author.guild_permissions.administrator):
+ embed.color = COLORS["error"]
+ embed.description = f"You must be an administrator to modify settings"
elif (len(args) == 0):
embed.color = COLORS["error"]
embed.description = f"Please provide a value for the setting"