discord-interactions.py

check

Fonction

Ajoute une vérification async personnalisée (interaction) -> bool.

from discord_interactions import check

Signature

def check(check_func: Callable[[discord.Interaction], Awaitable[bool]]) -> Callable

Paramètres

NomTypeDéfautDescription
check_funcCallable[[discord.Interaction], Awaitable[bool]]requis

Retour

Callable

Tape un nom : create_button, ModalBuilder, cooldown.