From fa901afa3a0506e55da704d4d567e1c7c42f51f1 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 5 Mar 2022 23:39:02 -0500 Subject: [PATCH] Add replied_user key when no allowed_mentions is passed in --- discord/http.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/discord/http.py b/discord/http.py index 3fed678a2..9f840779a 100644 --- a/discord/http.py +++ b/discord/http.py @@ -224,7 +224,9 @@ def handle_message_parameters( try: payload['allowed_mentions']['replied_user'] = mention_author except KeyError: - pass + payload['allowed_mentions'] = { + 'replied_user': mention_author, + } if attachments is MISSING: attachments = files # type: ignore