iBlitzkriegi / Vixio

Vixio, The Skript Addon made to fit all of your Discord needs.
http://www.vixio.space
40 stars 28 forks source link

Discord Buttons #344

Open MitnikDK opened 2 years ago

MitnikDK commented 2 years ago

Is your feature request related to a problem? Please describe. I want to make a ticket bot, that uses Discord Buttons for players to select a topic e.g. "Report a player", "Support", "Requests"

Describe the solution you'd like The way it could be written would be: [a] new [(enabled|disabled)] %buttonstyle% [link] button [with (id|url)] %string% [(named|with label) %string%][,] [with [emoji] %emote%]

This creates 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 redirected to.

An example of how it would be used: set {_btn} to new enabled danger button with id "button-id" named "Feature request"