From 6ca1ba5492d9757f7fe7a7dfd30126ae55b4be58 Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Thu, 19 Oct 2023 21:45:12 +0200 Subject: [PATCH] fix: object object :skull: --- README.md | 2 ++ src/commands/issue.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8c44fb3..d82e025 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # linear-discord bot that queries sern linear tickets to display them in discord + +internal tool that we (the devteam) use to mention tickets in the dev discord server \ No newline at end of file diff --git a/src/commands/issue.ts b/src/commands/issue.ts index 494ae28..33c30d0 100644 --- a/src/commands/issue.ts +++ b/src/commands/issue.ts @@ -76,7 +76,7 @@ export default commandModule({ .setAuthor({ name: issueCreator.displayName || issueCreator.email!, iconURL: issueCreator.avatarUrl, url: issueCreator.url }) .setTitle(issue.title) .setURL(issue.url) - .setDescription(`${issue.description ? codeBlock(issue.description) : ''}\nInfo:\n- Status: ${statusEmojiResolver(issueState.type as IssueStateType)} ${issueState.name}\n- Priority: ${issuePriorityResolver(issuePriority).emoji} ${issuePriorityResolver(issuePriority).title}\n- Assignee: ${issueAssignee ? `[${issueAssignee.name}](${issueAssignee.url})` : 'none'}\n- Project: ${issueProject ? `[${issueProject.name}](${issueProject.url})` : 'none'}\n- On project milestone: ${await issue.projectMilestone || 'none'}\n- Due date: ${issue.dueDate ? dayjs(issue.dueDate).format('MM/DD/YYYY HH:mm') : 'none'}`) + .setDescription(`${issue.description ? codeBlock(issue.description) : ''}\nInfo:\n- Status: ${statusEmojiResolver(issueState.type as IssueStateType)} ${issueState.name}\n- Priority: ${issuePriorityResolver(issuePriority).emoji} ${issuePriorityResolver(issuePriority).title}\n- Assignee: ${issueAssignee ? `[${issueAssignee.name}](${issueAssignee.url})` : 'none'}\n- Project: ${issueProject ? `[${issueProject.name}](${issueProject.url})` : 'none'}\n- On project milestone: ${(await issue.projectMilestone || { name: 'none' }).name }\n- Due date: ${issue.dueDate ? dayjs(issue.dueDate).format('MM/DD/YYYY HH:mm') : 'none'}`) ctx.interaction.editReply({ embeds: [embed] }) } catch {