Skip to main content

Composition Objects

This page documents the public Go API for composition objects. Every constructor and method shown here is part of the fluent github.com/nicklambourne/slackblocks/go/v2 package.

NewAreaChart

NewAreaChart creates an area-chart object.

func NewAreaChart() *AreaChartBuilder

AreaChartBuilder

AreaChartBuilder is the concrete fluent builder returned by NewAreaChart. Use NewAreaChart rather than constructing this type directly.

type AreaChartBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

AreaChartBuilder.Series

Series appends chart series.

func (b *AreaChartBuilder) Series(values ...any) *AreaChartBuilder

AreaChartBuilder.AxisConfig

AxisConfig sets chart-axis configuration.

func (b *AreaChartBuilder) AxisConfig(value any) *AreaChartBuilder

Every AreaChartBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewAxisConfig

NewAxisConfig creates category and label settings for a chart axis.

func NewAxisConfig() *AxisConfigBuilder

AxisConfigBuilder

AxisConfigBuilder is the concrete fluent builder returned by NewAxisConfig. Use NewAxisConfig rather than constructing this type directly.

type AxisConfigBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

AxisConfigBuilder.Categories

Categories appends chart axis categories.

func (b *AxisConfigBuilder) Categories(values ...string) *AxisConfigBuilder

AxisConfigBuilder.XLabel

XLabel sets a chart x-axis label.

func (b *AxisConfigBuilder) XLabel(value string) *AxisConfigBuilder

AxisConfigBuilder.YLabel

YLabel sets a chart y-axis label.

func (b *AxisConfigBuilder) YLabel(value string) *AxisConfigBuilder

Every AxisConfigBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewBarChart

NewBarChart creates a bar-chart object.

func NewBarChart() *BarChartBuilder

BarChartBuilder

BarChartBuilder is the concrete fluent builder returned by NewBarChart. Use NewBarChart rather than constructing this type directly.

type BarChartBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

BarChartBuilder.Series

Series appends chart series.

func (b *BarChartBuilder) Series(values ...any) *BarChartBuilder

BarChartBuilder.AxisConfig

AxisConfig sets chart-axis configuration.

func (b *BarChartBuilder) AxisConfig(value any) *BarChartBuilder

Every BarChartBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewChartSegment

NewChartSegment creates a labelled pie-chart segment.

func NewChartSegment() *ChartSegmentBuilder

ChartSegmentBuilder

ChartSegmentBuilder is the concrete fluent builder returned by NewChartSegment. Use NewChartSegment rather than constructing this type directly.

type ChartSegmentBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

ChartSegmentBuilder.Label

Label sets a label field.

func (b *ChartSegmentBuilder) Label(value any) *ChartSegmentBuilder

ChartSegmentBuilder.Value

Value sets an application-defined value.

func (b *ChartSegmentBuilder) Value(value any) *ChartSegmentBuilder

Every ChartSegmentBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewColumnSettings

NewColumnSettings creates table-column display settings.

func NewColumnSettings() *ColumnSettingsBuilder

ColumnSettingsBuilder

ColumnSettingsBuilder is the concrete fluent builder returned by NewColumnSettings. Use NewColumnSettings rather than constructing this type directly.

type ColumnSettingsBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

ColumnSettingsBuilder.Align

Align sets table-column alignment.

func (b *ColumnSettingsBuilder) Align(value string) *ColumnSettingsBuilder

ColumnSettingsBuilder.IsWrapped

IsWrapped controls table-column text wrapping.

func (b *ColumnSettingsBuilder) IsWrapped(value bool) *ColumnSettingsBuilder

Every ColumnSettingsBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewConfirmation

NewConfirmation creates a confirmation-dialog composition object.

func NewConfirmation() *ConfirmationBuilder

ConfirmationBuilder

ConfirmationBuilder is the concrete fluent builder returned by NewConfirmation. Use NewConfirmation rather than constructing this type directly.

type ConfirmationBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

ConfirmationBuilder.Title

Title sets a title field.

func (b *ConfirmationBuilder) Title(value any) *ConfirmationBuilder

ConfirmationBuilder.Text

Text sets a text-bearing field. Constructors coerce strings to the Slack text-object form required by that field.

func (b *ConfirmationBuilder) Text(value any) *ConfirmationBuilder

ConfirmationBuilder.Confirm

Confirm sets a confirmation object or its confirm-button label, according to the builder being configured.

func (b *ConfirmationBuilder) Confirm(value any) *ConfirmationBuilder

ConfirmationBuilder.Deny

Deny sets the denial-button label on a confirmation object.

func (b *ConfirmationBuilder) Deny(value any) *ConfirmationBuilder

ConfirmationBuilder.Style

Style sets a Slack-supported visual or layout style.

func (b *ConfirmationBuilder) Style(value any) *ConfirmationBuilder

Every ConfirmationBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewConversationFilter

NewConversationFilter creates a conversation select-menu filter.

func NewConversationFilter() *ConversationFilterBuilder

ConversationFilterBuilder

ConversationFilterBuilder is the concrete fluent builder returned by NewConversationFilter. Use NewConversationFilter rather than constructing this type directly.

type ConversationFilterBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

ConversationFilterBuilder.Include

Include appends conversation kinds to a conversation filter.

func (b *ConversationFilterBuilder) Include(values ...string) *ConversationFilterBuilder

ConversationFilterBuilder.ExcludeExternalSharedChannels

ExcludeExternalSharedChannels configures conversation filtering.

func (b *ConversationFilterBuilder) ExcludeExternalSharedChannels(value bool) *ConversationFilterBuilder

ConversationFilterBuilder.ExcludeBotUsers

ExcludeBotUsers configures conversation filtering.

func (b *ConversationFilterBuilder) ExcludeBotUsers(value bool) *ConversationFilterBuilder

Every ConversationFilterBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewDataPoint

NewDataPoint creates a labelled chart data point.

func NewDataPoint() *DataPointBuilder

DataPointBuilder

DataPointBuilder is the concrete fluent builder returned by NewDataPoint. Use NewDataPoint rather than constructing this type directly.

type DataPointBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

DataPointBuilder.Label

Label sets a label field.

func (b *DataPointBuilder) Label(value any) *DataPointBuilder

DataPointBuilder.Value

Value sets an application-defined value.

func (b *DataPointBuilder) Value(value any) *DataPointBuilder

Every DataPointBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewDataSeries

NewDataSeries creates a named chart data series.

func NewDataSeries() *DataSeriesBuilder

DataSeriesBuilder

DataSeriesBuilder is the concrete fluent builder returned by NewDataSeries. Use NewDataSeries rather than constructing this type directly.

type DataSeriesBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

DataSeriesBuilder.Name

Name sets a named Slack value.

func (b *DataSeriesBuilder) Name(value string) *DataSeriesBuilder

DataSeriesBuilder.Data

Data appends data points.

func (b *DataSeriesBuilder) Data(values ...any) *DataSeriesBuilder

Every DataSeriesBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewDispatchActionConfiguration

NewDispatchActionConfiguration creates an input dispatch configuration.

func NewDispatchActionConfiguration() *DispatchActionConfigurationBuilder

DispatchActionConfigurationBuilder

DispatchActionConfigurationBuilder is the concrete fluent builder returned by NewDispatchActionConfiguration. Use NewDispatchActionConfiguration rather than constructing this type directly.

type DispatchActionConfigurationBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

DispatchActionConfigurationBuilder.TriggerActionsOn

TriggerActionsOn appends dispatch-action trigger names.

func (b *DispatchActionConfigurationBuilder) TriggerActionsOn(values ...string) *DispatchActionConfigurationBuilder

Every DispatchActionConfigurationBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewInputParameter

NewInputParameter creates a customizable workflow input parameter.

func NewInputParameter() *InputParameterBuilder

InputParameterBuilder

InputParameterBuilder is the concrete fluent builder returned by NewInputParameter. Use NewInputParameter rather than constructing this type directly.

type InputParameterBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

InputParameterBuilder.Name

Name sets a named Slack value.

func (b *InputParameterBuilder) Name(value string) *InputParameterBuilder

InputParameterBuilder.Value

Value sets an application-defined value.

func (b *InputParameterBuilder) Value(value any) *InputParameterBuilder

Every InputParameterBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewLineChart

NewLineChart creates a line-chart object.

func NewLineChart() *LineChartBuilder

LineChartBuilder

LineChartBuilder is the concrete fluent builder returned by NewLineChart. Use NewLineChart rather than constructing this type directly.

type LineChartBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

LineChartBuilder.Series

Series appends chart series.

func (b *LineChartBuilder) Series(values ...any) *LineChartBuilder

LineChartBuilder.AxisConfig

AxisConfig sets chart-axis configuration.

func (b *LineChartBuilder) AxisConfig(value any) *LineChartBuilder

Every LineChartBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewMarkdown

NewMarkdown creates a Slack mrkdwn composition object.

func NewMarkdown() *MarkdownBuilder

MarkdownBuilder

MarkdownBuilder is the concrete fluent builder returned by NewMarkdown. Use NewMarkdown rather than constructing this type directly.

type MarkdownBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

MarkdownBuilder.Text

Text sets a text-bearing field. Constructors coerce strings to the Slack text-object form required by that field.

func (b *MarkdownBuilder) Text(value any) *MarkdownBuilder

MarkdownBuilder.Verbatim

Verbatim controls automatic Slack mrkdwn parsing.

func (b *MarkdownBuilder) Verbatim(value bool) *MarkdownBuilder

Every MarkdownBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewOption

NewOption creates a selectable option composition object.

func NewOption() *OptionBuilder

OptionBuilder

OptionBuilder is the concrete fluent builder returned by NewOption. Use NewOption rather than constructing this type directly.

type OptionBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

OptionBuilder.Text

Text sets a text-bearing field. Constructors coerce strings to the Slack text-object form required by that field.

func (b *OptionBuilder) Text(value any) *OptionBuilder

OptionBuilder.Value

Value sets an application-defined value.

func (b *OptionBuilder) Value(value any) *OptionBuilder

OptionBuilder.Description

Description sets supporting descriptive text.

func (b *OptionBuilder) Description(value any) *OptionBuilder

OptionBuilder.URL

URL sets a URL field.

func (b *OptionBuilder) URL(value string) *OptionBuilder

Every OptionBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewOptionGroup

NewOptionGroup creates a labelled group of selectable options.

func NewOptionGroup() *OptionGroupBuilder

OptionGroupBuilder

OptionGroupBuilder is the concrete fluent builder returned by NewOptionGroup. Use NewOptionGroup rather than constructing this type directly.

type OptionGroupBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

OptionGroupBuilder.Label

Label sets a label field.

func (b *OptionGroupBuilder) Label(value any) *OptionGroupBuilder

OptionGroupBuilder.Options

Options appends selectable option objects.

func (b *OptionGroupBuilder) Options(values ...any) *OptionGroupBuilder

Every OptionGroupBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewPieChart

NewPieChart creates a pie-chart object.

func NewPieChart() *PieChartBuilder

PieChartBuilder

PieChartBuilder is the concrete fluent builder returned by NewPieChart. Use NewPieChart rather than constructing this type directly.

type PieChartBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

PieChartBuilder.Segments

Segments appends pie-chart segments.

func (b *PieChartBuilder) Segments(values ...any) *PieChartBuilder

Every PieChartBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewPlainText

NewPlainText creates a plain-text composition object.

func NewPlainText() *PlainTextBuilder

PlainTextBuilder

PlainTextBuilder is the concrete fluent builder returned by NewPlainText. Use NewPlainText rather than constructing this type directly.

type PlainTextBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

PlainTextBuilder.Text

Text sets a text-bearing field. Constructors coerce strings to the Slack text-object form required by that field.

func (b *PlainTextBuilder) Text(value any) *PlainTextBuilder

PlainTextBuilder.Emoji

Emoji controls Slack emoji shortcode conversion for plain text.

func (b *PlainTextBuilder) Emoji(value bool) *PlainTextBuilder

Every PlainTextBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewRawNumber

NewRawNumber creates a numeric data-table cell.

func NewRawNumber() *RawNumberBuilder

RawNumberBuilder

RawNumberBuilder is the concrete fluent builder returned by NewRawNumber. Use NewRawNumber rather than constructing this type directly.

type RawNumberBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

RawNumberBuilder.Value

Value sets an application-defined value.

func (b *RawNumberBuilder) Value(value any) *RawNumberBuilder

RawNumberBuilder.Text

Text sets a text-bearing field. Constructors coerce strings to the Slack text-object form required by that field.

func (b *RawNumberBuilder) Text(value any) *RawNumberBuilder

Every RawNumberBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewRawText

NewRawText creates an unformatted table cell.

func NewRawText() *RawTextBuilder

RawTextBuilder

RawTextBuilder is the concrete fluent builder returned by NewRawText. Use NewRawText rather than constructing this type directly.

type RawTextBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

RawTextBuilder.Text

Text sets a text-bearing field. Constructors coerce strings to the Slack text-object form required by that field.

func (b *RawTextBuilder) Text(value any) *RawTextBuilder

Every RawTextBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewRichText

NewRichText creates a rich-text text run.

func NewRichText() *RichTextBuilder

RichTextBuilder

RichTextBuilder is the concrete fluent builder returned by NewRichText. Use NewRichText rather than constructing this type directly.

type RichTextBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

RichTextBuilder.Text

Text sets a text-bearing field. Constructors coerce strings to the Slack text-object form required by that field.

func (b *RichTextBuilder) Text(value any) *RichTextBuilder

RichTextBuilder.Style

Style sets a Slack-supported visual or layout style.

func (b *RichTextBuilder) Style(value any) *RichTextBuilder

Every RichTextBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewRichTextChannel

NewRichTextChannel creates a rich-text channel mention.

func NewRichTextChannel() *RichTextChannelBuilder

RichTextChannelBuilder

RichTextChannelBuilder is the concrete fluent builder returned by NewRichTextChannel. Use NewRichTextChannel rather than constructing this type directly.

type RichTextChannelBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

RichTextChannelBuilder.ChannelID

ChannelID sets a Slack channel ID.

func (b *RichTextChannelBuilder) ChannelID(value string) *RichTextChannelBuilder

RichTextChannelBuilder.Style

Style sets a Slack-supported visual or layout style.

func (b *RichTextChannelBuilder) Style(value any) *RichTextChannelBuilder

Every RichTextChannelBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewRichTextCodeBlock

NewRichTextCodeBlock creates a preformatted rich-text block.

func NewRichTextCodeBlock() *RichTextCodeBlockBuilder

RichTextCodeBlockBuilder

RichTextCodeBlockBuilder is the concrete fluent builder returned by NewRichTextCodeBlock. Use NewRichTextCodeBlock rather than constructing this type directly.

type RichTextCodeBlockBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

RichTextCodeBlockBuilder.Elements

Elements appends Slack elements.

func (b *RichTextCodeBlockBuilder) Elements(values ...any) *RichTextCodeBlockBuilder

RichTextCodeBlockBuilder.Border

Border sets a rich-text border depth.

func (b *RichTextCodeBlockBuilder) Border(value int) *RichTextCodeBlockBuilder

Every RichTextCodeBlockBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewRichTextEmoji

NewRichTextEmoji creates a rich-text emoji run.

func NewRichTextEmoji() *RichTextEmojiBuilder

RichTextEmojiBuilder

RichTextEmojiBuilder is the concrete fluent builder returned by NewRichTextEmoji. Use NewRichTextEmoji rather than constructing this type directly.

type RichTextEmojiBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

RichTextEmojiBuilder.Name

Name sets a named Slack value.

func (b *RichTextEmojiBuilder) Name(value string) *RichTextEmojiBuilder

RichTextEmojiBuilder.SkinTone

SkinTone sets an emoji skin-tone index.

func (b *RichTextEmojiBuilder) SkinTone(value int) *RichTextEmojiBuilder

Every RichTextEmojiBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewRichTextLink creates a rich-text link run.

func NewRichTextLink() *RichTextLinkBuilder

RichTextLinkBuilder

RichTextLinkBuilder is the concrete fluent builder returned by NewRichTextLink. Use NewRichTextLink rather than constructing this type directly.

type RichTextLinkBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

RichTextLinkBuilder.URL

URL sets a URL field.

func (b *RichTextLinkBuilder) URL(value string) *RichTextLinkBuilder

RichTextLinkBuilder.Text

Text sets a text-bearing field. Constructors coerce strings to the Slack text-object form required by that field.

func (b *RichTextLinkBuilder) Text(value any) *RichTextLinkBuilder

RichTextLinkBuilder.Style

Style sets a Slack-supported visual or layout style.

func (b *RichTextLinkBuilder) Style(value any) *RichTextLinkBuilder

Every RichTextLinkBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewRichTextList

NewRichTextList creates an ordered or bullet rich-text list.

func NewRichTextList() *RichTextListBuilder

RichTextListBuilder

RichTextListBuilder is the concrete fluent builder returned by NewRichTextList. Use NewRichTextList rather than constructing this type directly.

type RichTextListBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

RichTextListBuilder.Style

Style sets a Slack-supported visual or layout style.

func (b *RichTextListBuilder) Style(value any) *RichTextListBuilder

RichTextListBuilder.Elements

Elements appends Slack elements.

func (b *RichTextListBuilder) Elements(values ...any) *RichTextListBuilder

RichTextListBuilder.Indent

Indent sets a rich-text list indent level.

func (b *RichTextListBuilder) Indent(value int) *RichTextListBuilder

RichTextListBuilder.Offset

Offset sets a rich-text list nesting offset.

func (b *RichTextListBuilder) Offset(value int) *RichTextListBuilder

RichTextListBuilder.Border

Border sets a rich-text border depth.

func (b *RichTextListBuilder) Border(value int) *RichTextListBuilder

Every RichTextListBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewRichTextQuote

NewRichTextQuote creates a quoted rich-text block.

func NewRichTextQuote() *RichTextQuoteBuilder

RichTextQuoteBuilder

RichTextQuoteBuilder is the concrete fluent builder returned by NewRichTextQuote. Use NewRichTextQuote rather than constructing this type directly.

type RichTextQuoteBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

RichTextQuoteBuilder.Elements

Elements appends Slack elements.

func (b *RichTextQuoteBuilder) Elements(values ...any) *RichTextQuoteBuilder

RichTextQuoteBuilder.Border

Border sets a rich-text border depth.

func (b *RichTextQuoteBuilder) Border(value int) *RichTextQuoteBuilder

Every RichTextQuoteBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewRichTextSection

NewRichTextSection creates a rich-text inline section.

func NewRichTextSection() *RichTextSectionBuilder

RichTextSectionBuilder

RichTextSectionBuilder is the concrete fluent builder returned by NewRichTextSection. Use NewRichTextSection rather than constructing this type directly.

type RichTextSectionBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

RichTextSectionBuilder.Elements

Elements appends Slack elements.

func (b *RichTextSectionBuilder) Elements(values ...any) *RichTextSectionBuilder

Every RichTextSectionBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewRichTextUser

NewRichTextUser creates a rich-text user mention.

func NewRichTextUser() *RichTextUserBuilder

RichTextUserBuilder

RichTextUserBuilder is the concrete fluent builder returned by NewRichTextUser. Use NewRichTextUser rather than constructing this type directly.

type RichTextUserBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

RichTextUserBuilder.UserID

UserID sets a Slack user ID.

func (b *RichTextUserBuilder) UserID(value string) *RichTextUserBuilder

RichTextUserBuilder.Style

Style sets a Slack-supported visual or layout style.

func (b *RichTextUserBuilder) Style(value any) *RichTextUserBuilder

Every RichTextUserBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewRichTextUserGroup

NewRichTextUserGroup creates a rich-text user-group mention.

func NewRichTextUserGroup() *RichTextUserGroupBuilder

RichTextUserGroupBuilder

RichTextUserGroupBuilder is the concrete fluent builder returned by NewRichTextUserGroup. Use NewRichTextUserGroup rather than constructing this type directly.

type RichTextUserGroupBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

RichTextUserGroupBuilder.UserGroupID

UserGroupID sets a Slack user-group ID.

func (b *RichTextUserGroupBuilder) UserGroupID(value string) *RichTextUserGroupBuilder

RichTextUserGroupBuilder.Style

Style sets a Slack-supported visual or layout style.

func (b *RichTextUserGroupBuilder) Style(value any) *RichTextUserGroupBuilder

Every RichTextUserGroupBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewSlackFile

NewSlackFile creates a Slack-hosted file reference.

func NewSlackFile() *SlackFileBuilder

SlackFileBuilder

SlackFileBuilder is the concrete fluent builder returned by NewSlackFile. Use NewSlackFile rather than constructing this type directly.

type SlackFileBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

SlackFileBuilder.SlackFileID

SlackFileID sets a Slack-hosted file identifier.

func (b *SlackFileBuilder) SlackFileID(value string) *SlackFileBuilder

SlackFileBuilder.SlackFileURL

SlackFileURL sets a Slack-hosted file URL.

func (b *SlackFileBuilder) SlackFileURL(value string) *SlackFileBuilder

Every SlackFileBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewSlackIcon

NewSlackIcon creates a named Slack-rendered icon.

func NewSlackIcon() *SlackIconBuilder

SlackIconBuilder

SlackIconBuilder is the concrete fluent builder returned by NewSlackIcon. Use NewSlackIcon rather than constructing this type directly.

type SlackIconBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

SlackIconBuilder.Name

Name sets a named Slack value.

func (b *SlackIconBuilder) Name(value string) *SlackIconBuilder

Every SlackIconBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewTrigger

NewTrigger creates a workflow link trigger.

func NewTrigger() *TriggerBuilder

TriggerBuilder

TriggerBuilder is the concrete fluent builder returned by NewTrigger. Use NewTrigger rather than constructing this type directly.

type TriggerBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

TriggerBuilder.URL

URL sets a URL field.

func (b *TriggerBuilder) URL(value string) *TriggerBuilder

TriggerBuilder.CustomizableInputParameters

CustomizableInputParameters appends workflow parameters.

func (b *TriggerBuilder) CustomizableInputParameters(values ...any) *TriggerBuilder

Every TriggerBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.

NewWorkflow

NewWorkflow creates a workflow composition object.

func NewWorkflow() *WorkflowBuilder

WorkflowBuilder

WorkflowBuilder is the concrete fluent builder returned by NewWorkflow. Use NewWorkflow rather than constructing this type directly.

type WorkflowBuilder struct { /* contains filtered or unexported fields */ }

Its fluent methods return the same concrete builder, so invalid fields are rejected at compile time.

WorkflowBuilder.Trigger

Trigger sets a workflow trigger.

func (b *WorkflowBuilder) Trigger(value any) *WorkflowBuilder

Every WorkflowBuilder also provides Build() (Object, error), MustBuild() Object, and JSON marshaling. Set(field, value) is available as an advanced raw wire-format escape hatch; it deliberately ends the typed fluent chain.