1
0
This commit is contained in:
anoadragon453
2025-06-10 10:16:33 +00:00
parent 5e0234e957
commit 1e16da8a97
6 changed files with 34 additions and 2 deletions

View File

@@ -168,6 +168,10 @@ Synapse is running. Ratelimit callbacks can be registered using the module API's
<p><em>First introduced in Synapse v1.132.0</em></p>
<pre><code class="language-python">async def get_ratelimit_override_for_user(user: str, limiter_name: str) -&gt; Optional[synapse.module_api.RatelimitOverride]
</code></pre>
<p><strong><span style="color:red">
Caution: This callback is currently experimental . The method signature or behaviour
may change without notice.
</span></strong></p>
<p>Called when constructing a ratelimiter of a particular type for a user. The module can
return a <code>messages_per_second</code> and <code>burst_count</code> to be used, or <code>None</code> if
the default settings are adequate. The user is represented by their Matrix user ID