Skip to content

Commit 4cfe371

Browse files
committed
Update messageCreate.ts
1 parent 58984cf commit 4cfe371

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/events/messageCreate.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ColorResolvable, Message, PermissionResolvable } from "discord.js";
44

55
import axios from "axios";
66
import { emojis as emoji } from "../../config.json";
7-
import { cap } from "../util/functions";
7+
import { cap, processGitHubMarkdown } from "../util/functions";
88

99
type State = "issue_open" | "issue_completed" | "issue_closed" | "pr_open" | "pr_closed" | "pr_merged";
1010

@@ -144,6 +144,7 @@ const event: GuildEvent = {
144144
.setAuthor({ name: res.user.login, iconURL: res.user.avatar_url, url: res.user.html_url })
145145
.setTitle(`${cap(res.title, 200)} (#${res.number})`)
146146
.setURL(res.html_url)
147+
.setDescription(cap(processGitHubMarkdown(res.body || ""), 4000))
147148
.addFields({
148149
name: "Status",
149150
value: status.join(" "),

0 commit comments

Comments
 (0)