(self, request: Request, *args: Any, **kwargs: Any)
| 64 | |
| 65 | @action(methods=["GET"], detail=True, url_path="channels") |
| 66 | def content(self, request: Request, *args: Any, **kwargs: Any) -> Response: |
| 67 | instance = self.get_object() |
| 68 | |
| 69 | slack = SlackIntegration(instance) |
| 70 | channels = [ |
| 71 | { |
| 72 | "id": channel["id"], |
| 73 | "name": channel["name"], |
| 74 | "is_private": channel["is_private"], |
| 75 | "is_member": channel["is_member"], |
| 76 | "is_ext_shared": channel["is_ext_shared"], |
| 77 | } |
| 78 | for channel in slack.list_channels() |
| 79 | ] |
| 80 | |
| 81 | return Response({"channels": channels}) |
nothing calls this directly
no test coverage detected