danger

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

Creates a danger 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 danger(emoji: Emoji): ButtonFactory(source)

Creates a danger button factory with the provided emoji.

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

See also


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

Creates a danger 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