Replace Component (Effect) — DiSky

Addon: DiSky · Category: Effect · Since: 5.0.0-a1

Syntax

replace [the] component with [the] [unique] id %text/number% (of|in|from) [the] [message] %types.message% (with|by) %types.component%

Description

Swaps one component of a sent message, found by its text id (a button, a dropdown) or its unique id (any component, including text displays and sections inside a container), for a new one. Every other component is kept as it is. Inside a button or dropdown click on that same message, the edit is the interaction's answer.

Examples

replace the component with id "confirm" of event-message with {_disabledButton}
replace the component with unique id 42 in {_msg} with a new text display "Updated!"

View source