def _list_channels(self) -> List[Dict[str, Any]]:
        """List channels based on the types."""
        from slack_sdk.errors import SlackApiError

        try:
            result = self._client.conversations_list(types=self.channel_types)
            return result["channels"]
        except SlackApiError as e:
            logger.error(f"Error fetching channels: {e.response['error']}")
            raise
List channels based on the types.
llama-index-integrations/readers/llama-index-readers-slack/llama_index/readers/slack/base.py