Skip to content

Commit

Permalink
fix: object object 💀
Browse files Browse the repository at this point in the history
  • Loading branch information
SrIzan10 committed Oct 19, 2023
1 parent a373f04 commit 6ca1ba5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/commands/issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6ca1ba5

Please sign in to comment.