mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-16 10:49:24 +00:00
Fix allowed_mentions when sending files
This commit is contained in:
parent
cc26499237
commit
6ae615baae
@ -877,7 +877,7 @@ class Messageable(metaclass=abc.ABCMeta):
|
|||||||
raise InvalidArgument('file parameter must be File')
|
raise InvalidArgument('file parameter must be File')
|
||||||
|
|
||||||
try:
|
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)
|
content=content, tts=tts, embed=embed, nonce=nonce)
|
||||||
finally:
|
finally:
|
||||||
file.close()
|
file.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user