mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 14:37:41 +00:00
feat(discord): add cart link to embed (#762)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user