discord-interactions.py

disable_buttons

Function

Copy of the components with buttons and selects disabled; Link buttons stay active.

from discord_interactions import disable_buttons

Signature

def disable_buttons(    components: Dict[str, Any] | Sequence[Dict[str, Any]],) -> List[Dict[str, Any]]

Parameters

NameTypeDefaultDescription
componentsDict[str, Any] | Sequence[Dict[str, Any]]required

Returns

List[Dict[str, Any]]

Type a name: create_button, ModalBuilder, cooldown.