diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py index f208ff737914..3c02c1e0dbb6 100644 --- a/synapse/module_api/__init__.py +++ b/synapse/module_api/__init__.py @@ -1480,12 +1480,13 @@ async def create_room( Returns: A tuple containing the room ID (str) and, if an alias was requested, the room alias (str), otherwise None (if no alias was requested). + Raises: - SynapseError if the user_id is invalid, room ID couldn't be stored, or - something went horribly wrong. ResourceLimitError if server is blocked to some resource being exceeded. RuntimeError if the user_id does not refer to a local user. + SynapseError if the user_id is invalid, room ID couldn't be stored, or + something went horribly wrong. """ if not self.is_mine(user_id): raise RuntimeError(