discord-interactions.py

time_restricted

Fonction

Limite la commande à certaines heures (UTC).

from discord_interactions.slash import time_restricted

Signature

def time_restricted(hours: List[int]) -> Callable

Paramètres

NomTypeDéfautDescription
hoursList[int]requis

Retour

Callable

Tape un nom : create_button, ModalBuilder, cooldown.