Remove unnecessary code
This commit is contained in:
parent
716f16946d
commit
9aa7075266
1 changed files with 1 additions and 3 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue