Skip to content

Commit

Permalink
[Purge] fix purge bot
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Oct 30, 2023
1 parent 750625e commit 3972d61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion purge/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ async def _contains(self, ctx: commands.GuildContext, *, text: str):
async def _bot(
self,
ctx: commands.GuildContext,
prefix: Optional[str], # type: ignore
number: commands.Range[int, 1, 2000],
prefix: Optional[str] = None,
):
"""
Removes bot messages, optionally takes a prefix argument.
Expand All @@ -267,6 +267,8 @@ async def _bot(
- `[p]purge bot`
- `[p]purge bot 2000 ?`
"""
if not prefix:
prefix: Optional[str] = None

def predicate(message: discord.Message) -> Union[Optional[bool], str]:
return (
Expand Down

0 comments on commit 3972d61

Please sign in to comment.