From ee120fb2e0023f4d004777e10afefd3a624bea1f Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Fri, 19 Dec 2025 07:27:00 +0100 Subject: [PATCH] fix: description length for `issue` event --- src/api/routes/webhooks/#webhook_id/#token/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/webhooks/#webhook_id/#token/github.ts b/src/api/routes/webhooks/#webhook_id/#token/github.ts index 81aa40a93..09a33fbba 100644 --- a/src/api/routes/webhooks/#webhook_id/#token/github.ts +++ b/src/api/routes/webhooks/#webhook_id/#token/github.ts @@ -119,7 +119,7 @@ const parseGitHubWebhook = (req: Request, res: Response, next: NextFunction) => if (req.body.action === "opened") { discordPayload.embeds[0].color = 15426592; - discordPayload.embeds[0].description = req.body.issue.body.length > 150 ? `${req.body.issue.body.slice(0, 147)}...` : req.body.issue.body; + discordPayload.embeds[0].description = req.body.issue.body.length > 501 ? `${req.body.issue.body.slice(0, 497)}...` : req.body.issue.body; } break; case "member":