success

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

Creates a success button factory with the provided label.

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

See also

Throws

If the label is empty


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

Creates a success button factory with the provided emoji.

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

See also


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

Creates a success button factory with the provided emoji.

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

See also

Throws

If the label is empty