Cut description down to maximum length
This commit is contained in:
parent
12afbbdaa5
commit
99367354a2
|
@ -54,8 +54,14 @@ module.exports = {
|
|||
embed.setColor(0x6441a5);
|
||||
embed.setTitle(`${game.name}`);
|
||||
embed.setURL(`${game.url}`);
|
||||
|
||||
if (game.cover) {
|
||||
embed.setThumbnail(`${coverUrl}`);
|
||||
embed.addFields({ name: 'Description', value: `${game.summary}` });
|
||||
}
|
||||
|
||||
if (game.summary) {
|
||||
embed.addFields({ name: 'Description', value: `${game.summary.length > 1024 ? game.summary.substring(0, 1024) : game.summary}` });
|
||||
}
|
||||
|
||||
if (game.involved_companies) {
|
||||
const companies = [];
|
||||
|
|
Loading…
Reference in New Issue