mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Keep description in Attachment.to_file
This commit is contained in:
@ -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 = {
|
||||
|
Reference in New Issue
Block a user