UNPKG

1.33 kBTypeScriptView Raw
1import type { OptionalArgument } from '../helpers';
2import type { LocaleAware, TokenOverridable } from './common';
3export type RTMConnectArguments = OptionalArgument<TokenOverridable & {
4 /**
5 * @description Batch presence deliveries via subscription. Enabling changes the shape of `presence_change` events.
6 * @see {@link https://api.slack.com/docs/presence-and-status#batching batch presence}.
7 */
8 batch_presence_aware?: boolean;
9 /**
10 * @description Only deliver presence events when requested by subscription.
11 * @see {@link Only deliver presence events when requested by subscription. presence subscriptions}.
12 */
13 presence_sub?: boolean;
14}>;
15export type RTMStartArguments = OptionalArgument<RTMConnectArguments & LocaleAware & {
16 /** @description Returns MPIMs to the client in the API response. */
17 mpim_aware?: boolean;
18 /**
19 * @description Exclude latest timestamps for channels, groups, mpims, and ims.
20 * Automatically sets `no_unreads` to `true`.
21 */
22 no_latest?: boolean;
23 /** @description Skip unread counts for each channel (improves performance). */
24 no_unreads?: boolean;
25 /** @description Return timestamp only for latest message object of each channel (improves performance). */
26 simple_latest?: boolean;
27}>;
28//# sourceMappingURL=rtm.d.ts.map
\No newline at end of file