Skip to content

Commit

Permalink
Update block_video.go
Browse files Browse the repository at this point in the history
No harm, definitely useful.

Co-authored-by: Ben Bourdin <ben-bourdin451@users.noreply.github.com>
  • Loading branch information
parsley42 and ben-bourdin451 authored Oct 19, 2023
1 parent da4cb94 commit b80fc08
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions block_video.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,33 @@ func NewVideoBlock(videoURL, thumbnailURL, altText, blockID string, title *TextB
Title: title,
}
}

// WithAuthorName sets the author name for the VideoBlock
func (s *VideoBlock) WithAuthorName(authorName string) *VideoBlock {
s.AuthorName = authorName
return s
}

// WithTitleURL sets the title URL for the VideoBlock
func (s *VideoBlock) WithTitleURL(titleURL string) *VideoBlock {
s.TitleURL = titleURL
return s
}

// WithDescription sets the description for the VideoBlock
func (s *VideoBlock) WithDescription(description *slack.TextBlockObject) *VideoBlock {
s.Description = description
return s
}

// WithProviderIconURL sets the provider icon URL for the VideoBlock
func (s *VideoBlock) WithProviderIconURL(providerIconURL string) *VideoBlock {
s.ProviderIconURL = providerIconURL
return s
}

// WithProviderName sets the provider name for the VideoBlock
func (s *VideoBlock) WithProviderName(providerName string) *VideoBlock {
s.ProviderName = providerName
return s
}

0 comments on commit b80fc08

Please sign in to comment.