Adds the new ephemeral field on discord.Attachment #63

Merged
Gnome-py merged 2 commits from ephemeral-attachments into 2.0 2021-09-21 18:51:23 +00:00
Showing only changes of commit 9d56f85455 - Show all commits

View File

@@ -176,7 +176,7 @@ class Attachment(Hashable):
.. versionadded:: 2.0
"""
__slots__ = ("id", "size", "height", "width", "filename", "url", "proxy_url", "ephemeral" "_http", "content_type")
__slots__ = ("id", "size", "height", "width", "filename", "url", "proxy_url", "ephemeral", "_http", "content_type")
def __init__(self, *, data: AttachmentPayload, state: ConnectionState):
self.id: int = int(data["id"])