Skip to content

Add support for title argument in CreateChannelCanvas method#1483

Merged
nlopes merged 2 commits into
slack-go:masterfrom
jarospisak-unity:channel-canvas-title
Jan 24, 2026
Merged

Add support for title argument in CreateChannelCanvas method#1483
nlopes merged 2 commits into
slack-go:masterfrom
jarospisak-unity:channel-canvas-title

Conversation

@jarospisak-unity

@jarospisak-unity jarospisak-unity commented Oct 1, 2025

Copy link
Copy Markdown
Contributor

This PR adds support for title argument in the CreateChannelCanvas method.

Closes #1482.

@nlopes

nlopes commented Oct 26, 2025

Copy link
Copy Markdown
Member

Hi @jarospisak-unity. As it stands this is a breaking change and I'd rather not add breaking changes if they can be avoided at all.

One way is simply to add a method that allows to pass options. This pattern already exists in other parts of the codebase. Happy for you to give it a go if you're ok to do so, alternatively, I'll come back to this soon-ish.

func (api *Client) CreateChannelCanvasWithOptions(channel string, options
  ...CreateChannelCanvasOption) (string, error) {
      return api.CreateChannelCanvasWithOptionsContext(context.Background(), channel,
  options...)
  }
[...]

@jarospisak-unity

Copy link
Copy Markdown
Contributor Author

@nlopes thanks for the feedback, I wasn't aware of that pattern. I'll refactor this pull request.

@nlopes nlopes force-pushed the channel-canvas-title branch from 7b0a59f to cc6e18e Compare January 24, 2026 22:48
@nlopes nlopes merged commit 419548d into slack-go:master Jan 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for title parameter in conversations.canvases.create method

2 participants