Add replied_user key when no allowed_mentions is passed in

This commit is contained in:
Rapptz 2022-03-05 23:39:02 -05:00
parent 07a1311bf4
commit fa901afa3a

View File

@ -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