Code-Society-Lab / Code-Society-Lab/matrixpy
Room: Add leave method
Open
good first issue
- Dominant language
- Python
- Stars
- 14
- Forks
- 7
- Avg merge
- 8d 19h
- Merged PRs (30d)
- 5
Description
The bot currently has no way to leave a room at runtime. This is a common need, a bot may join a room temporarily, or be invited to one it should decline after inspecting. `Room.leave()` fills this gap and follows the exact same existing patterns.
### Proposed API
```python
async def leave(self) -> None
```
### Example
```python
await room.leave()
```
### Before opening a PR
- Write unit tests
- Run mypy matrix/
- Run pytest tests/
- Run black .
Contributor guide
Assessment
This issue has not been assessed yet.