diff options
| author | 2019-10-02 16:30:02 -0700 | |
|---|---|---|
| committer | 2019-10-02 16:30:02 -0700 | |
| commit | c9b610a0463daa10b853a764b7096c8976973b5a (patch) | |
| tree | aa506d472399ad950ff131ebd11991f620d210ab | |
| parent | Remove __all__ definition from moderation subpackage (diff) | |
Swap arguments for post_infraction calls
Co-Authored-By: Sebastiaan Zeeff <[email protected]>
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/moderation/infractions.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/bot/cogs/moderation/infractions.py b/bot/cogs/moderation/infractions.py index 856d5f1a9..3b3383263 100644 --- a/bot/cogs/moderation/infractions.py +++ b/bot/cogs/moderation/infractions.py @@ -55,7 +55,7 @@ class Infractions(Scheduler, commands.Cog):      @command()      async def warn(self, ctx: Context, user: MemberConverter, *, reason: str = None) -> None:          """Warn a user for the given reason.""" -        infraction = await utils.post_infraction(ctx, user, reason, "warning") +        infraction = await utils.post_infraction(ctx, user,  "warning", reason)          if infraction is None:              return @@ -114,7 +114,7 @@ class Infractions(Scheduler, commands.Cog):      @command(hidden=True)      async def note(self, ctx: Context, user: MemberConverter, *, reason: str = None) -> None:          """Create a private note for a user with the given reason without notifying the user.""" -        infraction = await utils.post_infraction(ctx, user, reason, "note", hidden=True) +        infraction = await utils.post_infraction(ctx, user, "note", reason, hidden=True)          if infraction is None:              return | 
