Code-Society-Lab / Code-Society-Lab/matrixpy
Room: Add set_name and set_topic methods
Open
good first issue
- Dominant language
- Python
- Stars
- 14
- Forks
- 7
- Avg merge
- 8d 19h
- Merged PRs (30d)
- 5
Description
name and topic are exposed as read-only properties but can't be updated. Bots often need to write room metadata dynamically (e.g. live status in the topic).
### Proposed API
```python
async def set_name(self, name: str) -> None
async def set_topic(self, topic: str) -> None
```
### Example
```python
await room.set_name("General")
await room.set_topic("Last updated: 13:00 UTC")
```
### 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.