1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-16 02:39:01 +00:00

Fix allowed_mentions when sending files

This commit is contained in:
Xua 2020-09-20 16:14:00 +12:00 committed by GitHub
parent cc26499237
commit 6ae615baae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -877,7 +877,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()