You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been making third party discord client for some time now (sadly, without knowing about this repo) so I mostly figured it all out.
Here's what I know about ack-ing (api v9): token can be set to None, I never saw it have different value. last_viewed is days since discord epoch, and can be calculated like this (python): ceil((time.time() - 1420070400) / 86400) (time.time() gives current utc time in seconds), idk why discord requires that, but will always send error if its wrong.
About read_state:
The catch is: last_message_id in read_state entries is actually last_ACKED_message_id.
So to know if channel has unread messages, simply compare last_message_id form private_channels or guilds > channels with this last_ACKED_message_id. If last_message_id is larger, there are unreads.
Message acknowledgement has more fields than documented right now (for example,
flags
,last_viewed
ortoken
).The following flags are known at the moment:
The text was updated successfully, but these errors were encountered: