Code-Society-Lab / Code-Society-Lab/matrixpy

Room: Add leave method

Open
#75 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.