diff options
| -rw-r--r-- | bot/cogs/moderation.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/cogs/moderation.py b/bot/cogs/moderation.py index f5002a046..7f516a298 100644 --- a/bot/cogs/moderation.py +++ b/bot/cogs/moderation.py @@ -150,8 +150,7 @@ class Moderation: await ctx.send(f":x: There was an error adding the infraction: {response_object['error_message']}") return - guild: Guild = ctx.guild - await guild.ban(user, reason=reason) + await ctx.guild.ban(user, reason=reason) if reason is None: result_message = f":ok_hand: permanently banned {user.mention}." |