Matrix supports m.room.pinned_events state events. Pinning is a good tool that fits well in message.
Proposed API
async def pin(self) -> None: ...
async def unpin(self) -> None: ...
Example
@bot.command()
async def pin(ctx: Context) -> None:
await ctx.message.pin()
@bot.command()
async def unpin(ctx: Context) -> None:
await ctx.message.unpin()
Before opening a PR
- Write unit tests
- Run
mypy matrix/
- Run
pytest tests/
- Run
black .
Matrix supports
m.room.pinned_eventsstate events. Pinning is a good tool that fits well in message.Proposed API
Example
Before opening a PR
mypy matrix/pytest tests/black .