New Button (Expression) — DiSky

Addon: DiSky · Category: Expression

Syntax

[a] new [(enabled|disabled)] %buttonstyle% [link] button [with (id|url)] %string% [(named|with label) %-string%][,] [with [emoji] %-emote%]

Description

Create a new button with an ID and some optional options. It can be either enabled or disabled, and either link or action. If the button is a link-type, then the ID will be the URL that the user will be redirect to.

Examples

set {_btn} to new enabled danger button with id "button-id" named "Hello world :p"

View source