Skip to content

Commit

Permalink
fix: description too long
Browse files Browse the repository at this point in the history
  • Loading branch information
Picodes committed Nov 23, 2023
1 parent 6bf5d92 commit 76ed672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export async function sendDiscordNotification(params: {
})
.setColor(colorBySeverity[params.severity])
.setTitle(`${params.title}`)
.setDescription(params.description ?? 'nodesc')
.setDescription(params.description?.slice(0, 1000) ?? 'nodesc')
.addFields(params.fields)
.setFooter(chainFooter[params.chain] ?? { text: `${params.chain}` });

Expand Down

0 comments on commit 76ed672

Please sign in to comment.