Dialog

The Dialog API is a simple method to create dialog-like embeds message (info/warning/error dialogs).

context.sendMessage(Dialog.info("My Dialog", "An info dialog"));
context.sendMessage(Dialog.warn("My Dialog", "A warning dialog"));
context.sendMessage(Dialog.error("My Dialog", "An error dialog"));

Gives :

Customizing

context.sendMessage(Dialog.dialog(Color.decode("0xABCDEF"), "My Dialog", "A custom dialog", /* Optional */ "http://myawesomesite.com/myawesomeicon.png);

Note that there is constants in the Dialog class with the colors and icons used in Dialog#info Dialog#warn and Dialog#error


results matching ""

    No results matching ""