discord-interactions.py

row_update_one

Coroutineà attendre avec await

Comme row_update, mais seulement si exactement une rangée correspond.

from discord_interactions import row_update_one

Signature

async def row_update_one(    message: Any,    row_selector: str | int | Callable[[Dict[str, Any], int], bool],    updater: Callable[[Dict[str, Any]], Dict[str, Any] | None] | Callable[[Dict[str, Any]], Awaitable[Dict[str, Any] | None]],) -> bool

Paramètres

NomTypeDéfautDescription
messageAnyrequis
row_selectorstr | int | Callable[[Dict[str, Any], int], bool]requis
updaterCallable[[Dict[str, Any]], Dict[str, Any] | None] | Callable[[Dict[str, Any]], Awaitable[Dict[str, Any] | None]]requis

Retour

bool

Tape un nom : create_button, ModalBuilder, cooldown.