ratelimit_middleware
Fonction
Anti-spam global : nombre maximal de commandes par minute.
from discord_interactions.slash import ratelimit_middlewareSignature
def ratelimit_middleware( *, max_commands_per_minute: int = 30, per: str = 'user',) -> MiddlewareParamètres
| Nom | Type | Défaut | Description |
|---|---|---|---|
max_commands_per_minute | int | 30 | |
per | str | 'user' |
Retour
Middleware