Skip to content

Commit

Permalink
fix: Toggle links on header
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyhuy committed Jul 6, 2021
1 parent 35b9e57 commit 3c2ae19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/discord.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ function createEmbed(repo, branch, url, commits, size, links) {
.setDescription(getChangeLog(commits, size, links))
.setTimestamp(Date.parse(latest.timestamp));

if (!links) {
embed.setURL(url)
}

return embed;
}

Expand Down

0 comments on commit 3c2ae19

Please sign in to comment.