From 9aa70752666ecf33559954d93ba77cca8f827b96 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Wed, 2 Feb 2022 20:49:39 -0700 Subject: [PATCH] Remove unnecessary code --- jarvis/cogs/admin/ban.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jarvis/cogs/admin/ban.py b/jarvis/cogs/admin/ban.py index 7b197f5..1de0b3d 100644 --- a/jarvis/cogs/admin/ban.py +++ b/jarvis/cogs/admin/ban.py @@ -111,8 +111,8 @@ class BanCog(CacheCog): async def _ban( self, ctx: InteractionContext, + reason: str, user: User = None, - reason: str = None, btype: str = "perm", duration: int = 4, ) -> None: @@ -131,8 +131,6 @@ class BanCog(CacheCog): if len(reason) > 100: await ctx.send("Reason must be < 100 characters", hidden=True) return - if not reason: - reason = "Mr. Stark is displeased with your presence. Please leave." await ctx.defer()