def __init__(self, *, data: AttachmentPayload, state: ConnectionState):
    self.id: int = int(data['id'])
    self.size: int = data['size']
    self.height: Optional[int] = data.get('height')
    self.width: Optional[int] = data.get('width')
    self.filename: str = data['filename']
    self.url: str = data['url']
    self.proxy_url: str = data['proxy_url']
    self._http = state.http
    self.content_type: Optional[str] = data.get('content_type')
    self.description: Optional[str] = data.get('description')
    self.ephemeral: bool = data.get('ephemeral', False)
def __init__(self, *, data: AttachmentPayload, state: ConnectionState):
    self.id: int = int(data['id'])
    self.size: int = data['size']
    self.height: Optional[int] = data.get('height')
    self.width: Optional[int] = data.get('width')
    self.filename: str = data['filename']
    self.url: str = data['url']
    self.proxy_url: str = data['proxy_url']
    self._http = state.http
    self.content_type: Optional[str] = data.get('content_type')
    self.description: Optional[str] = data.get('description')
    self.ephemeral: bool = data.get('ephemeral', False)