summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2022-05-30 18:37:52 +0200
committerGitHub <noreply@github.com>2022-05-30 18:37:52 +0200
commitcd9fc058dea3a5f5ef282ebdcb48aa6caf1eb722 (patch)
tree8df9c7ba7029da00be6feaaec8bd0ff5debbfe1f /synapse
parentUniformize spam-checker API, part 3: Expand check_event_for_spam with the abi... (diff)
downloadsynapse-cd9fc058dea3a5f5ef282ebdcb48aa6caf1eb722.tar.xz
Document the Synapse version of a new module API method (#12917)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/module_api/__init__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py
index edcf59aa0b..6668f64c90 100644
--- a/synapse/module_api/__init__.py
+++ b/synapse/module_api/__init__.py
@@ -1149,7 +1149,10 @@ class ModuleApi:
             )
 
     async def sleep(self, seconds: float) -> None:
-        """Sleeps for the given number of seconds."""
+        """Sleeps for the given number of seconds.
+
+        Added in Synapse v1.49.0.
+        """
 
         await self._clock.sleep(seconds)
 
@@ -1435,6 +1438,8 @@ class ModuleApi:
         """Generates list of monthly active users and their services.
         Please see corresponding storage docstring for more details.
 
+        Added in Synapse v1.61.0.
+
         Arguments:
             start_timestamp: If specified, only include users that were first active
                 at or after this point