Skip to content

Commit

Permalink
Refactor discord.js to update DISCORD_MESSAGE_EMBEDS variable to supp…
Browse files Browse the repository at this point in the history
…ort message embeds
  • Loading branch information
Adammatthiesen committed Nov 28, 2024
1 parent 05218fb commit a6f5e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/discord.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if (!GITHUB_ACTION || !DISCORD_WEBHOOK) {

const body = {
content: DISCORD_MESSAGE ? DISCORD_MESSAGE : '',
embeds: DISCORD_MESSAGE_EMBEDS ? DISCORD_MESSAGE_EMBEDS : [],
embeds: DISCORD_MESSAGE_EMBEDS ? JSON.parse(DISCORD_MESSAGE_EMBEDS) : [],
};
if (DISCORD_USERNAME) {
body.username = DISCORD_USERNAME;
Expand Down

0 comments on commit a6f5e13

Please sign in to comment.