AutocompleteRegistry
Classe
Registre interne des fonctions d'autocomplétion.
from discord_interactions.slash import AutocompleteRegistryConstructeur
AutocompleteRegistry()Méthodes
register
def register( command_name: str, option_name: str, handler: Callable[..., Awaitable[List[Tuple[str, Any]]]],) -> Noneregister_options
def register_options(command_path: str, command: Any) -> NoneBranche les `autocomplete=fonction` déclarés dans les options.
register_global
def register_global( option_name: str, handler: Callable[..., Awaitable[List[Tuple[str, Any]]]],) -> Noneget_handler
def get_handler( command_name: str, option_name: str,) -> Callable[..., Awaitable[List[Tuple[str, Any]]]] | Nonehandle
async def handle(interaction: discord.Interaction) -> None