aboutsummaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-05-03 01:58:52 -0400
committerRapptz <[email protected]>2020-05-03 01:58:52 -0400
commit1f73e18bc6789c38d2dd0514bda5ac71c2cebf5d (patch)
treea4650eea3c4c1ec1dd5c5ef23cf92174280c88f9 /discord
parentallow passing EmptyEmbed to set_image and set_thumbnail (diff)
downloaddiscord.py-1f73e18bc6789c38d2dd0514bda5ac71c2cebf5d.tar.xz
discord.py-1f73e18bc6789c38d2dd0514bda5ac71c2cebf5d.zip
Make use_cached keyword only
Diffstat (limited to 'discord')
-rw-r--r--discord/message.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/message.py b/discord/message.py
index 834fbe5a..acf9e056 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -166,7 +166,7 @@ class Attachment:
data = await self._http.get_from_cdn(url)
return data
- async def to_file(self, use_cached=False):
+ async def to_file(self, *, use_cached=False):
"""|coro|
Converts the attachment into a :class:`File` suitable for sending via
@@ -183,7 +183,7 @@ class Attachment:
after the message is deleted. Note that this can still fail to download
deleted attachments if too much time has passed and it does not work
on some types of attachments.
-
+
.. versionadded:: 1.4
Raises