Browse Source

Keep description in Attachment.to_file

pull/7815/head
Jonah Lawrence 3 years ago
committed by GitHub
parent
commit
1372ef407c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/message.py

2
discord/message.py

@ -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…
Cancel
Save