Skip to content
Fluxer API

Read states

A read state records how far you have read in one channel. Only user accounts can call the routes on this page. To acknowledge a single message, use Acknowledge message.

No HTTP route lists read states. You get them as read_states in the Ready payload, and Message ACK events send changes after that.

FieldTypeDescription
idsnowflakeThe ID of the channel
mention_countintegerThe number of unread mentions (0-2,147,483,647)
last_message_id?snowflakeThe highest message ID the account has read through
last_pin_timestamp?ISO8601 timestampThe time of the last acknowledged pin
version?stringAlways 0
flags?integerThe read state flags, only on threads, forum channels and media channels
{
"id": "1501314428688998182",
"mention_count": 3,
"last_message_id": "1501320000000000000",
"last_pin_timestamp": null,
"version": "0"
}
ValueNameDescription
1 << 0IS_GUILD_CHANNELThe entry belongs to a guild channel
1 << 1IS_THREADThe entry belongs to a thread

A session that doesn't declare the channel_threads client capability gets no read states for threads, forum channels or media channels.

One entry in the body of Acknowledge read states.

FieldTypeDescription
channel_idsnowflakeThe ID of the channel to acknowledge
message_idsnowflakeThe ID of the message to read through
mention_count?integerThe number of mentions to store (0-2,147,483,647, default 0)
manual?booleanWhether to set last_message_id to message_id even when it is lower

Without manual, an entry whose message_id is below the current last_message_id changes nothing. With manual, a lower message_id marks the later messages unread again.

One entry in the body of Mark channels as read.

FieldTypeDescription
channel_idsnowflakeThe ID of the channel to acknowledge
message_idsnowflakeThe ID of the message to read through
POST/v1/read-states/ack

Applies the read state acknowledgements and returns the read states that result, in the order you sent them. The response leaves out thread, forum channel and media channel read states that your session can't receive. Sends a Message ACK event to your sessions for each entry. Each entry also clears delivered push notifications for its channel up to the submitted message_id.

FieldTypeDescription
read_statesarray[read state acknowledgement object]The acknowledgements to apply (1-100)
FieldTypeDescription
read_statesarray[read state object]The read states after the acknowledgements
StatusBodyCondition
200response bodyThe acknowledgements were applied

The rate limit is 20 requests per 10 seconds, on the read_state:ack_bulk bucket.

POST/v1/read-states/ack-bulk

Marks each channel as read through message_id and sets its mention count to 0. It works like Acknowledge read states without mention_count or manual and returns no body. An entry whose message_id is below the current last_message_id changes nothing. Sends a Message ACK event to your sessions for each entry. Each entry also clears delivered push notifications for its channel up to the submitted message_id.

FieldTypeDescription
read_statesarray[bulk read state acknowledgement object]The channel and message pairs to acknowledge (1-100)
StatusBodyCondition
204emptyThe acknowledgements were applied

The rate limit is 20 requests per 10 seconds, on the read_state:ack_bulk bucket.