diff options
author | 2021-12-26 01:37:28 +0000 | |
---|---|---|
committer | 2021-12-26 01:37:28 +0000 | |
commit | 89743e9db148d31891a4aa65bd1c9cb35eb67f4f (patch) | |
tree | d67ef23f23038b77c07af84f184ed2c7ae287496 | |
parent | Merge pull request #2027 from python-discord/fix-dm-sent-feature (diff) |
Add missing infraction id parameter & change ctx.bot to self.bot (#2028)
-rw-r--r-- | bot/exts/moderation/infraction/_scheduler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/moderation/infraction/_scheduler.py b/bot/exts/moderation/infraction/_scheduler.py index e25acdbba..6f379a9a0 100644 --- a/bot/exts/moderation/infraction/_scheduler.py +++ b/bot/exts/moderation/infraction/_scheduler.py @@ -171,7 +171,7 @@ class InfractionScheduler: # Accordingly update whether the user was successfully notified via DM. if await _utils.notify_infraction( - ctx.bot, user, infr_type.replace("_", " ").title(), expiry, user_reason, icon + self.bot, user, infraction["id"], infr_type.replace("_", " ").title(), expiry, user_reason, icon ): dm_result = ":incoming_envelope: " dm_log_text = "\nDM: Sent" @@ -241,7 +241,7 @@ class InfractionScheduler: # Accordingly update whether the user was successfully notified via DM. if await _utils.notify_infraction( - ctx.bot, user, infraction["id"], infr_type.replace("_", " ").title(), expiry, user_reason, icon + self.bot, user, infraction["id"], infr_type.replace("_", " ").title(), expiry, user_reason, icon ): dm_result = ":incoming_envelope: " dm_log_text = "\nDM: Sent" |