link

@CheckReturnValue
fun link(url: String, label: String): Button(source)

Creates a danger button factory with the label provided.

You can use ButtonFactory.persistent or ButtonFactory.ephemeral to then start building a button.

Throws

If the url/label is empty


@CheckReturnValue
fun link(url: String, emoji: Emoji): Button(source)

Creates a danger button factory with the emoji provided.

You can use ButtonFactory.persistent or ButtonFactory.ephemeral to then start building a button.

See also

EmojiUtils.resolveJDAEmoji

Throws

If the url is empty


@CheckReturnValue
fun link(url: String, label: String, emoji: Emoji): Button(source)

Creates a danger button factory with the emoji provided.

You can use ButtonFactory.persistent or ButtonFactory.ephemeral to then start building a button.

See also

EmojiUtils.resolveJDAEmoji

Throws

If the url/label is empty