Skip to content

Commit

Permalink
Let's try reported text in block
Browse files Browse the repository at this point in the history
  • Loading branch information
dcadenas committed Apr 3, 2024
1 parent ca81845 commit 8567bd5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/lib/slack.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ export default class Slack {
return {
channel: channelId,
text,
unfurl_media: false,
unfurl_links: false,
blocks: [
{
type: "section",
Expand All @@ -90,6 +92,22 @@ export default class Slack {
},
],
},
{
type: "rich_text",
block_id: "reportedText",
elements: [
{
type: "rich_text_preformatted",
elements: [
{
type: "text",
text: reportRequest.reportedEvent.content,
},
],
border: 0,
},
],
},
{
type: "rich_text",
block_id: "reportedEvent",
Expand Down

0 comments on commit 8567bd5

Please sign in to comment.