discord-interactions.py

row_update_one

Coroutinemust be awaited

Like row_update, but only when exactly one row matches.

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

Parameters

NameTypeDefaultDescription
messageAnyrequired
row_selectorstr | int | Callable[[Dict[str, Any], int], bool]required
updaterCallable[[Dict[str, Any]], Dict[str, Any] | None] | Callable[[Dict[str, Any]], Awaitable[Dict[str, Any] | None]]required

Returns

bool

Type a name: create_button, ModalBuilder, cooldown.