Skip to content

Commit

Permalink
Merge pull request #11 from KhloeLeclair/fix-fields-exception
Browse files Browse the repository at this point in the history
Fix the Dalamud Version field being overwritten when an exception is present.
  • Loading branch information
goaaats authored Feb 3, 2025
2 parents f36efd2 + 9bf1429 commit f120386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ async function sendWebHook(content, name, version, reporter, reporterId, excepti
}

if (exception && !checkForbidden(exception)) {
body.embeds[0].fields[1] = {
body.embeds[0].fields.push({
"name": "Exception",
"value": "```" + exception.substring(0, 950) + "```"
};
});
}

const init = {
Expand Down

0 comments on commit f120386

Please sign in to comment.