feat: new event for when media is uploaded

Messages created by the current client don't have attatched media on message_create because it is still being uploaded and sent. This event allows you to detect when the media has been properly sent so it can be downloaded.

close #111
This commit is contained in:
Pedro Lopez
2020-03-22 20:38:26 -04:00
parent cb54487197
commit 80d5783f22
2 changed files with 15 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ exports.Events = {
MESSAGE_REVOKED_EVERYONE: 'message_revoke_everyone',
MESSAGE_REVOKED_ME: 'message_revoke_me',
MESSAGE_ACK: 'message_ack',
MEDIA_UPLOADED: 'media_uploaded',
GROUP_JOIN: 'group_join',
GROUP_LEAVE: 'group_leave',
GROUP_UPDATE: 'group_update',