aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXua <[email protected]>2020-09-20 16:14:00 +1200
committerRapptz <[email protected]>2020-09-24 02:17:56 -0400
commitc10bd0a82bb8b62110ab65c27eda53710e8c5479 (patch)
treed57679644f85b9ae8b65c3f216a0c9fabf335b65
parentRemove caching from AutoShardedClient.shards (diff)
downloaddiscord.py-c10bd0a82bb8b62110ab65c27eda53710e8c5479.tar.xz
discord.py-c10bd0a82bb8b62110ab65c27eda53710e8c5479.zip
Fix allowed_mentions when sending files
-rw-r--r--discord/abc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/abc.py b/discord/abc.py
index a2ec977d..88734d67 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -869,7 +869,7 @@ class Messageable(metaclass=abc.ABCMeta):
raise InvalidArgument('file parameter must be File')
try:
- data = await state.http.send_files(channel.id, files=[file],
+ data = await state.http.send_files(channel.id, files=[file], allowed_mentions=allowed_mentions,
content=content, tts=tts, embed=embed, nonce=nonce)
finally:
file.close()