feat(slack/list-channels): add private and exclude archived channels

This commit is contained in:
Ali BARIN
2023-02-05 23:41:35 +00:00
parent 72450b6305
commit 48653c7590

View File

@@ -13,7 +13,13 @@ export default {
error: null, error: null,
}; };
const response = await $.http.get('/conversations.list'); const response = await $.http.get('/conversations.list', {
params: {
types: 'public_channel,private_channel',
limit: 1000,
exclude_archived: true,
}
});
if (response.data.ok === false) { if (response.data.ok === false) {
throw new Error(response.data); throw new Error(response.data);