mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-04 09:10:11 +00:00
Add replied_user key when no allowed_mentions is passed in
This commit is contained in:
parent
07a1311bf4
commit
fa901afa3a
@ -224,7 +224,9 @@ def handle_message_parameters(
|
|||||||
try:
|
try:
|
||||||
payload['allowed_mentions']['replied_user'] = mention_author
|
payload['allowed_mentions']['replied_user'] = mention_author
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
payload['allowed_mentions'] = {
|
||||||
|
'replied_user': mention_author,
|
||||||
|
}
|
||||||
|
|
||||||
if attachments is MISSING:
|
if attachments is MISSING:
|
||||||
attachments = files # type: ignore
|
attachments = files # type: ignore
|
||||||
|
Loading…
x
Reference in New Issue
Block a user