UNPKG

1.03 kBTypeScriptView Raw
1import { WebAPICallResult } from '../../WebClient';
2export type ChannelsListResponse = WebAPICallResult & {
3 channels?: Channel[];
4 error?: string;
5 needed?: string;
6 ok?: boolean;
7 provided?: string;
8 response_metadata?: ResponseMetadata;
9 warning?: string;
10};
11export interface Channel {
12 created?: number;
13 creator?: string;
14 id?: string;
15 is_archived?: boolean;
16 is_channel?: boolean;
17 is_general?: boolean;
18 is_member?: boolean;
19 is_mpim?: boolean;
20 is_org_shared?: boolean;
21 is_private?: boolean;
22 is_shared?: boolean;
23 members?: string[];
24 name?: string;
25 name_normalized?: string;
26 num_members?: number;
27 previous_names?: string[];
28 purpose?: Purpose;
29 topic?: Purpose;
30 unlinked?: number;
31}
32export interface Purpose {
33 creator?: string;
34 last_set?: number;
35 value?: string;
36}
37export interface ResponseMetadata {
38 messages?: string[];
39 next_cursor?: string;
40 warnings?: string[];
41}
42//# sourceMappingURL=ChannelsListResponse.d.ts.map
\No newline at end of file