mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +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)
|
||||
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:
|
||||
result: AttachmentPayload = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user