create_context
Fonction
Crée un SlashContext (usage interne ou tests).
from discord_interactions.slash import create_contextSignature
def create_context( interaction: discord.Interaction, command: SlashCommand | None = None, options: Dict[str, Any] | None = None,) -> SlashContextParamètres
| Nom | Type | Défaut | Description |
|---|---|---|---|
interaction | discord.Interaction | requis | |
command | SlashCommand | None | None | |
options | Dict[str, Any] | None | None |
Retour
SlashContext