Edit Interaction Components (Effect) — DiSky

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

Syntax

edit [the] interaction components (with|to [show]) [the] [components] %types.component%

Description

Replaces every component of the message whose button or dropdown was just clicked, as the answer to that interaction (or through it, if it was deferred 'and edit'). Bare buttons are grouped into rows like on a message builder. Pass nothing to strip the components.

Examples

on button clicked:
	set disabled of event-button to true
	edit interaction components with event-button

on dropdown clicked:
	edit interaction components with {_row1} and {_row2}

View source