diff options
author | 2019-10-01 14:59:00 -0700 | |
---|---|---|
committer | 2019-10-01 18:25:34 -0700 | |
commit | fc02216560d2df1750bb8bfc5c6c00f758393ea7 (patch) | |
tree | 68fc7bbcfa63932eac61435ac2e90c454be5cdb3 | |
parent | Display username in addition to id for unmutes in mod log (diff) |
Fix out-of-order and missing arguments for post_infraction calls
-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 8f217fdba..e5f85a5c8 100644 --- a/bot/cogs/moderation/infractions.py +++ b/bot/cogs/moderation/infractions.py @@ -188,7 +188,7 @@ class Infractions(Scheduler, Cog): @respect_role_hierarchy() async def apply_kick(self, ctx: Context, user: Member, reason: str, **kwargs) -> None: """Apply a kick infraction with kwargs passed to `post_infraction`.""" - infraction = await post_infraction(ctx, user, type="kick", **kwargs) + infraction = await post_infraction(ctx, user, "kick", reason, **kwargs) if infraction is None: return @@ -203,7 +203,7 @@ class Infractions(Scheduler, Cog): if await already_has_active_infraction(ctx, user, "ban"): return - infraction = await post_infraction(ctx, user, reason, "ban", **kwargs) + infraction = await post_infraction(ctx, user, "ban", reason, **kwargs) if infraction is None: return |