diff options
| author | 2018-07-25 14:46:37 -0400 | |
|---|---|---|
| committer | 2018-07-25 14:46:37 -0400 | |
| commit | 0d1bd1f8ad2e8d92006203009819113e4ea28091 (patch) | |
| tree | 638b04b7711cac4afae1452c499d91ddda46b2bb | |
| parent | Add aliases for moderation commands (diff) | |
Simplify ban line
| -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}." |