mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 21:40:51 +02:00
Disable embed display URLs in changelog
This commit is contained in:
@@ -34,8 +34,8 @@ module.exports = class ChangelogCommand extends Command {
|
|||||||
.setColor(0x7289DA)
|
.setColor(0x7289DA)
|
||||||
.setURL(`https://github.com/${XIAO_GITHUB_REPO_USERNAME}/${XIAO_GITHUB_REPO_NAME}/commits/master`)
|
.setURL(`https://github.com/${XIAO_GITHUB_REPO_USERNAME}/${XIAO_GITHUB_REPO_NAME}/commits/master`)
|
||||||
.setDescription(commits.map(commit => {
|
.setDescription(commits.map(commit => {
|
||||||
const hash = embedURL(`\`${commit.sha.slice(0, 7)}\``, commit.html_url);
|
const hash = embedURL(`\`${commit.sha.slice(0, 7)}\``, commit.html_url, false);
|
||||||
return `${hash} ${shorten(commit.commit.message.split('\n')[0], 25)} - ${commit.author.login}`;
|
return `${hash} ${shorten(commit.commit.message.split('\n')[0], 50)} - ${commit.author.login}`;
|
||||||
}).join('\n'));
|
}).join('\n'));
|
||||||
return msg.embed(embed);
|
return msg.embed(embed);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user