primary

@CheckReturnValue
fun primary(label: String): ButtonFactory(source)

Creates a primary button factory with the label provided.

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

See also

Throws

If the label is empty


@CheckReturnValue
fun primary(emoji: Emoji): ButtonFactory(source)

Creates a primary button factory with the emoji provided.

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

See also

EmojiUtils.resolveJDAEmoji

@CheckReturnValue
fun primary(label: String, emoji: Emoji): ButtonFactory(source)

Creates a primary 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 label is empty