feat(discord): add cart link to embed (#762)

This commit is contained in:
Vincent
2020-11-11 23:15:10 -05:00
committed by GitHub
parent 841647c06c
commit ccb207abeb
+3 -1
View File
@@ -15,7 +15,9 @@ export function sendDiscordMessage(link: Link, store: Store) {
try {
const embed = new MessageBuilder();
embed.setTitle('Stock Notification');
embed.addField('URL', link.cartUrl ? link.cartUrl : link.url, true);
if (link.cartUrl)
embed.addField('Add To Cart Link', link.cartUrl, true);
embed.addField('Product Page', link.url, true);
embed.addField('Store', store.name, true);
embed.addField('Brand', link.brand, true);
embed.addField('Series', link.series, true);