diff options
author | 2021-12-26 01:15:51 +0000 | |
---|---|---|
committer | 2021-12-26 01:15:51 +0000 | |
commit | a10750e93284aca904713560942023e67bf5865d (patch) | |
tree | cb122ecc9768cf8808bde2f597cc27b3ec1eee37 | |
parent | Merge pull request #1951 from python-discord/add-dm_sent-field (diff) | |
parent | Add missing `bot` parameter to call (diff) |
Merge pull request #2027 from python-discord/fix-dm-sent-feature
-rw-r--r-- | bot/exts/moderation/infraction/_scheduler.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/moderation/infraction/_scheduler.py b/bot/exts/moderation/infraction/_scheduler.py index 52dd79791..e25acdbba 100644 --- a/bot/exts/moderation/infraction/_scheduler.py +++ b/bot/exts/moderation/infraction/_scheduler.py @@ -170,7 +170,9 @@ class InfractionScheduler: dm_log_text = "\nDM: **Failed**" # Accordingly update whether the user was successfully notified via DM. - if await _utils.notify_infraction(user, infr_type.replace("_", " ").title(), expiry, user_reason, icon): + if await _utils.notify_infraction( + ctx.bot, user, infr_type.replace("_", " ").title(), expiry, user_reason, icon + ): dm_result = ":incoming_envelope: " dm_log_text = "\nDM: Sent" |