slack-term 1.26.7 → 1.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ts/slack.ts CHANGED
@@ -192,10 +192,16 @@ export async function history(
192
192
  oldest?: string,
193
193
  cursor?: string,
194
194
  cookie?: string,
195
+ // `oldest` is EXCLUSIVE by default — the message at that exact ts is left out.
196
+ // Set this to get it back, which is what a caller polling a message it just
197
+ // posted (its reactions, its reply_count) actually needs. Only sent when true
198
+ // so every existing caller's request is byte-identical to before.
199
+ inclusive?: boolean,
195
200
  ): Promise<Json> {
196
201
  const params: Record<string, string> = { channel, limit: String(limit) };
197
202
  if (oldest !== undefined) params.oldest = oldest;
198
203
  if (cursor !== undefined) params.cursor = cursor;
204
+ if (inclusive) params.inclusive = "true";
199
205
  return get(token, "conversations.history", params, cookie);
200
206
  }
201
207