From c10bd0a82bb8b62110ab65c27eda53710e8c5479 Mon Sep 17 00:00:00 2001 From: Xua <17090652+XuaTheGrate@users.noreply.github.com> Date: Sun, 20 Sep 2020 16:14:00 +1200 Subject: [PATCH] Fix allowed_mentions when sending files --- discord/abc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/abc.py b/discord/abc.py index a2ec977d2..88734d67b 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()