| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-10-06 19:24:52 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-10-06 19:24:52 UTC |
| parent | b57e4d80bcc68f8951d3152e755437da575e684b |
| borogove/ChatMessage.hx | +1 | -1 |
diff --git a/borogove/ChatMessage.hx b/borogove/ChatMessage.hx index de53f3f..d9a12d6 100644 --- a/borogove/ChatMessage.hx +++ b/borogove/ChatMessage.hx @@ -606,7 +606,7 @@ class ChatMessage { @param client Client to use when fetching @returns Promise resolving to a ChatAttachment with cachedAt filled in, if possible **/ - public function fetchAttachment(attachment: ChatAttachment, client: Client, storeIfNeeded: Bool = true) { + public function fetchAttachment(attachment: ChatAttachment, client: Client, storeIfNeeded: Bool = true): Promise<ChatAttachment> { final hasNoHashes = attachment.hashes.length < 1; return client.fetchAttachment(attachment).then(r -> { if (hasNoHashes && r.hashes.length > 0) {