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

Room: Add set_name and set_topic methods

Open
#69 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

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

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.