Skip to content

Room: Add leave method #75

Open

Description

@PenguinBoi12

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

async def leave(self) -> None

Example

await room.leave()

Before opening a PR

  • Write unit tests
  • Run mypy matrix/
  • Run pytest tests/
  • Run black .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions