create_context
Function
Creates a SlashContext (internal use or tests).
from discord_interactions.slash import create_contextSignature
def create_context( interaction: discord.Interaction, command: SlashCommand | None = None, options: Dict[str, Any] | None = None,) -> SlashContextParameters
| Name | Type | Default | Description |
|---|---|---|---|
interaction | discord.Interaction | required | |
command | SlashCommand | None | None | |
options | Dict[str, Any] | None | None |
Returns
SlashContext