mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Keep description in Attachment.to_file
This commit is contained in:
1 parent
06c257760b
commit
1372ef407c
1 file changed
+1
-1
+1
-1
@@ -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