Skip to content

Commit

Permalink
Merge pull request #65 from k-sho-boo/fix/get_all_channels
Browse files Browse the repository at this point in the history
Add types parameter when calling `conversations.list` api.
  • Loading branch information
yannickglt authored Mar 17, 2021
2 parents ff6caad + 962fbf0 commit 9bdf1b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/helpers/service/SingleTeamSlackService.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private function getAuth() {
public function getChannels($excludeArchived = false) {
$channels = Utils::getWorkflows()->read('channels.' . $this->teamId);
if ($channels === false) {
$params = [];
$params['types'] = 'public_channel,private_channel';
if ($excludeArchived === true) {
$params['exclude_archived'] = '1';
}
Expand Down

0 comments on commit 9bdf1b2

Please sign in to comment.