discord-interactions.py

ratelimit_middleware

Fonction

Anti-spam global : nombre maximal de commandes par minute.

from discord_interactions.slash import ratelimit_middleware

Signature

def ratelimit_middleware(    *,    max_commands_per_minute: int = 30,    per: str = 'user',) -> Middleware

Paramètres

NomTypeDéfautDescription
max_commands_per_minuteint30
perstr'user'

Retour

Middleware

Tape un nom : create_button, ModalBuilder, cooldown.