mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-25 10:32:59 +00:00
Make use_cached keyword only
This commit is contained in:
@@ -166,7 +166,7 @@ class Attachment:
|
|||||||
data = await self._http.get_from_cdn(url)
|
data = await self._http.get_from_cdn(url)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
async def to_file(self, use_cached=False):
|
async def to_file(self, *, use_cached=False):
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
Converts the attachment into a :class:`File` suitable for sending via
|
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
|
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
|
deleted attachments if too much time has passed and it does not work
|
||||||
on some types of attachments.
|
on some types of attachments.
|
||||||
|
|
||||||
.. versionadded:: 1.4
|
.. versionadded:: 1.4
|
||||||
|
|
||||||
Raises
|
Raises
|
||||||
|
|||||||
Reference in New Issue
Block a user