Skip to content

Commit

Permalink
Full message without header
Browse files Browse the repository at this point in the history
  • Loading branch information
KjellBerlin committed Aug 30, 2024
1 parent 66b61d6 commit fd7bb60
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.carbonara.core.slack

import com.slack.api.Slack
import com.slack.api.methods.kotlin_extension.request.chat.blocks
import com.slack.api.model.block.composition.BlockCompositions.plainText
import mu.KotlinLogging
import org.springframework.beans.factory.annotation.Value
import org.springframework.stereotype.Service
Expand All @@ -27,14 +26,14 @@ class SlackMessageService {
val response = slack.methods(slackToken).chatPostMessage { req -> req
.channel(slackChannel)
.blocks {
divider()
section {
markdownText("*New Order*")
}
/*
header {
plainText("New order")
}
*/
section {
markdownText("*Customer Name:*\n$customerName\n*OrderId:*\n$orderId")
}
Expand Down Expand Up @@ -63,8 +62,7 @@ class SlackMessageService {
value("cancelled")
}
}
*/
divider()
}
}

Expand Down

0 comments on commit fd7bb60

Please sign in to comment.