Remove unnecessary code

This commit is contained in:
Zeva Rose 2022-02-02 20:49:39 -07:00
parent 716f16946d
commit 9aa7075266

View file

@ -111,8 +111,8 @@ class BanCog(CacheCog):
async def _ban( async def _ban(
self, self,
ctx: InteractionContext, ctx: InteractionContext,
reason: str,
user: User = None, user: User = None,
reason: str = None,
btype: str = "perm", btype: str = "perm",
duration: int = 4, duration: int = 4,
) -> None: ) -> None:
@ -131,8 +131,6 @@ class BanCog(CacheCog):
if len(reason) > 100: if len(reason) > 100:
await ctx.send("Reason must be < 100 characters", hidden=True) await ctx.send("Reason must be < 100 characters", hidden=True)
return return
if not reason:
reason = "Mr. Stark is displeased with your presence. Please leave."
await ctx.defer() await ctx.defer()