From 10056360863107b2d03ef4ecbcc2240ba33ed976 Mon Sep 17 00:00:00 2001 From: xHyroM Date: Sun, 28 Aug 2022 15:32:32 +0200 Subject: [PATCH] feat: change format of /github Closes https://github.com/xHyroM/bun-discord-bot/issues/19 --- src/commands/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/github.ts b/src/commands/github.ts index 22b2f9e..383eabd 100644 --- a/src/commands/github.ts +++ b/src/commands/github.ts @@ -128,7 +128,7 @@ new Command({ } return ctx.editResponse([ - `${formatEmojiStatus(issueOrPR)} [#${issueOrPR.number} ${repositoryOwner}/${repositoryName}](<${issueOrPR.html_url}>) by [${issueOrPR.user_login}](<${issueOrPR.user_html_url}>) ${formatStatus(issueOrPR)}`, + `${formatEmojiStatus(issueOrPR)} [#${issueOrPR.number} ${issueOrPR.title.replace(/\[\]/g, '').slice(0, 1500)} ${repositoryOwner}/${repositoryName}](<${issueOrPR.html_url}>) by [${issueOrPR.user_login}](<${issueOrPR.user_html_url}>) ${formatStatus(issueOrPR)}`, issueOrPR.title ].join('\n')); }