Removes a user from a channel.
(
self,
*,
channel: str,
user: str,
**kwargs,
)
| 2541 | return self.api_call("channels.join", json=kwargs) |
| 2542 | |
| 2543 | def channels_kick( |
| 2544 | self, |
| 2545 | *, |
| 2546 | channel: str, |
| 2547 | user: str, |
| 2548 | **kwargs, |
| 2549 | ) -> SlackResponse: |
| 2550 | """Removes a user from a channel.""" |
| 2551 | kwargs.update({"channel": channel, "user": user}) |
| 2552 | kwargs = _remove_none_values(kwargs) |
| 2553 | return self.api_call("channels.kick", json=kwargs) |
| 2554 | |
| 2555 | def channels_leave( |
| 2556 | self, |
nothing calls this directly
no test coverage detected