Package blue.starry.penicillin.endpoints.welcomemessages.rules

Functions

Link copied to clipboard
fun WelcomeMessageRules.create(id: String, vararg options: Option): JsonObjectApiAction<WelcomeMessageRule.Single>

Creates a new Welcome Message Rule that determines which Welcome Message will be shown in a given conversation. Returns the created rule if successful. Requires a JSON POST body and Content-Type header to be set to application/json. Setting Content-Length may also be required if it is not automatically. Additional rule configurations are forthcoming. For the initial beta release, the most recently created Rule will always take precedence, and the assigned Welcome Message will be displayed in the conversation. See the Welcome Messages overview to learn how to work with Welcome Messages.

Link copied to clipboard
fun WelcomeMessageRules.delete(id: Long, vararg options: Option): EmptyApiAction

Deletes a Welcome Message Rule by the given id.

Link copied to clipboard
fun WelcomeMessageRules.list(    count: Int? = null,     cursor: String? = null,     vararg options: Option): JsonObjectApiAction<WelcomeMessageRule.List>

Returns a list of Welcome Message Rules.

Link copied to clipboard
fun WelcomeMessageRules.show(id: Long, vararg options: Option): JsonObjectApiAction<WelcomeMessageRule.Single>

Returns a Welcome Message Rule by the given id.

Properties

Link copied to clipboard