From 4fb6f6f71bd0a54b5f86df4a81c25358b3aee125 Mon Sep 17 00:00:00 2001 From: SebastiaanZ <33516116+SebastiaanZ@users.noreply.github.com> Date: Sat, 19 Jan 2019 17:51:45 +0100 Subject: Hiding 'hidden infractions' from regular users user information embed --- bot/cogs/information.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot/cogs/information.py b/bot/cogs/information.py index 129166d2f..0d31cb0d3 100644 --- a/bot/cogs/information.py +++ b/bot/cogs/information.py @@ -135,10 +135,13 @@ class Information: if not with_role_check(ctx, *MODERATION_ROLES): raise BadArgument("You do not have permission to use this command on users other than yourself.") - # Non-moderators may only do this in #bot-commands + # Non-moderators may only do this in #bot-commands and can't see + # hidden infractions. if not with_role_check(ctx, *MODERATION_ROLES): if not ctx.channel.id == Channels.bot: raise MissingPermissions("You can't do that here!") + # Hide hidden infractions for users without a moderation role + hidden = False # Validates hidden input hidden = str(hidden) -- cgit v1.2.3