diff --git "a/src/api/routes/webhooks/\043webhook_id/\043token/github.ts" "b/src/api/routes/webhooks/\043webhook_id/\043token/github.ts" index 419b8d2..256130b 100644 --- "a/src/api/routes/webhooks/\043webhook_id/\043token/github.ts" +++ "b/src/api/routes/webhooks/\043webhook_id/\043token/github.ts" @@ -168,7 +168,9 @@ ]; if (req.body.action === "opened") { - discordPayload.embeds[0].description = req.body.pull_request.body.length > 500 ? `${req.body.pull_request.body.slice(0, 497)}...` : req.body.pull_request.body; + if (req.body.pull_request.body != null) { + discordPayload.embeds[0].description = req.body.pull_request.body.length > 500 ? `${req.body.pull_request.body.slice(0, 497)}...` : req.body.pull_request.body; + } discordPayload.embeds[0].color = 38912; } break;