Skip to content

Commit

Permalink
fix block
Browse files Browse the repository at this point in the history
  • Loading branch information
walnuts1018 committed Mar 31, 2024
1 parent 07b04e6 commit 0f48378
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions slack/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,7 @@ func (c *Client) ForwardMessage(ctx context.Context, everythingChannelID string,
_, _, err = c.slackClient.PostMessageContext(
ctx,
everythingChannelID,
slack.MsgOptionBlocks(
&slack.SectionBlock{
Type: slack.MBTSection,
Text: &slack.TextBlockObject{
Type: slack.MarkdownType,
Text: fmt.Sprintf("<%s|`#%s`> %s", permalink, sourceChannelName, message.Text),
},
},
),
slack.MsgOptionBlocks(blocks...),
slack.MsgOptionDisableLinkUnfurl(),
slack.MsgOptionIconURL(iconURL),
slack.MsgOptionUsername(displayName),
Expand Down

0 comments on commit 0f48378

Please sign in to comment.