mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
Keep description in Attachment.to_file
This commit is contained in:
parent
06c257760b
commit
1372ef407c
@ -340,7 +340,7 @@ class Attachment(Hashable):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
data = await self.read(use_cached=use_cached)
|
data = await self.read(use_cached=use_cached)
|
||||||
return File(io.BytesIO(data), filename=self.filename, spoiler=spoiler)
|
return File(io.BytesIO(data), filename=self.filename, description=self.description, spoiler=spoiler)
|
||||||
|
|
||||||
def to_dict(self) -> AttachmentPayload:
|
def to_dict(self) -> AttachmentPayload:
|
||||||
result: AttachmentPayload = {
|
result: AttachmentPayload = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user