public class SlackBuildersKt
@NotNull public static ai.tock.bot.connector.ConnectorType getSlackConnectorType()
The Slack connector type.
@NotNull public static <T extends Bus<T>> T sendToSlack(@NotNull T $this$sendToSlack, long delay, @NotNull kotlin.jvm.functions.Function1<? super T,? extends ai.tock.bot.connector.slack.model.SlackConnectorMessage> messageProvider)
Sends a Slack message only if the ConnectorType of the current BotBus is slackConnectorType.
slackConnectorType@NotNull public static <T extends Bus<T>> T endForSlack(@NotNull T $this$endForSlack, long delay, @NotNull kotlin.jvm.functions.Function1<? super T,? extends ai.tock.bot.connector.slack.model.SlackConnectorMessage> messageProvider)
Sends a Slack message as last bot answer, only if the ConnectorType of the current BotBus is slackConnectorType.
slackConnectorType@NotNull public static <T extends Bus<T>> T withSlack(@NotNull T $this$withSlack, @NotNull kotlin.jvm.functions.Function0<? extends ai.tock.bot.connector.slack.model.SlackConnectorMessage> messageProvider)
Adds a Slack ConnectorMessage if the current connector is Slack. You need to call BotBus.send or BotBus.end later to send this message.
@NotNull public static SlackMessageOut textMessage(@NotNull ai.tock.bot.engine.I18nTranslator $this$textMessage, @NotNull java.lang.CharSequence message)
@NotNull public static SlackMessageOut multiLineMessage(@NotNull ai.tock.bot.engine.I18nTranslator $this$multiLineMessage, @NotNull java.util.List<? extends java.lang.CharSequence> lines, @Nullable java.lang.String channel)
@NotNull public static SlackMessageOut slackMessage(@NotNull ai.tock.bot.engine.I18nTranslator $this$slackMessage, @NotNull java.lang.CharSequence message, @NotNull ai.tock.bot.connector.slack.model.SlackMessageAttachment... attachments)
@NotNull public static SlackMessageOut slackMessage(@NotNull ai.tock.bot.engine.I18nTranslator $this$slackMessage, @NotNull java.lang.CharSequence message, @Nullable java.lang.String channel, @NotNull ai.tock.bot.connector.slack.model.SlackMessageAttachment... attachments)
@NotNull public static SlackMessageAttachment slackAttachment(@NotNull ai.tock.bot.engine.I18nTranslator $this$slackAttachment, @Nullable java.lang.CharSequence text, @NotNull ai.tock.bot.connector.slack.model.Button... buttons)
@NotNull public static SlackMessageAttachment slackAttachment(@NotNull ai.tock.bot.engine.I18nTranslator $this$slackAttachment, @NotNull ai.tock.bot.connector.slack.model.Button... buttons)
@NotNull public static SlackMessageAttachment slackAttachment(@NotNull ai.tock.bot.engine.I18nTranslator $this$slackAttachment, @Nullable java.lang.CharSequence text, @NotNull java.util.List<ai.tock.bot.connector.slack.model.Button> buttons, @NotNull java.lang.String color, @Nullable java.lang.String pretext, @NotNull java.lang.String fallback, @NotNull ai.tock.bot.connector.slack.model.AttachmentField... fields)
@NotNull public static AttachmentField attachmentField(@NotNull ai.tock.bot.engine.I18nTranslator $this$attachmentField, @NotNull java.lang.String title, @NotNull java.lang.String value, boolean p)
@NotNull public static SlackMessageOut emojiMessage(@NotNull SlackEmoji emoji)
@NotNull
public static java.lang.String emoji(@NotNull
SlackEmoji emoji)
@NotNull public static <T extends Bus<T>> Button slackButton(@NotNull T $this$slackButton, @NotNull java.lang.CharSequence title, @Nullable ai.tock.bot.definition.IntentAware targetIntent, @NotNull ai.tock.bot.definition.Parameters parameters, @NotNull java.lang.String name)
Creates Slack button: https://api.slack.com/reference/messaging/block-elements#button
@NotNull public static <T extends Bus<T>> Button slackButton(@NotNull T $this$slackButton, @NotNull java.lang.CharSequence title, @Nullable ai.tock.bot.definition.IntentAware targetIntent, @Nullable ai.tock.bot.definition.StoryStep<? extends ai.tock.bot.definition.StoryHandlerDefinition> step, @NotNull ai.tock.bot.definition.Parameters parameters, @NotNull java.lang.String name)
Creates a Slack button: https://api.slack.com/reference/messaging/block-elements#button
@NotNull public static <T extends Bus<T>> Button slackButton(@NotNull T $this$slackButton, @NotNull java.lang.CharSequence title, @Nullable ai.tock.bot.definition.IntentAware targetIntent, @Nullable ai.tock.bot.definition.StoryStep<? extends ai.tock.bot.definition.StoryHandlerDefinition> step, @NotNull kotlin.Pair[] parameters, @NotNull java.lang.String name)
Creates a Slack button: https://api.slack.com/reference/messaging/block-elements#button