Discord Webhooks
Webhooks are switched on in the module configs (discord-webhook in config-orders.yml and config-auction.yml). The look of each embed is set in webhook-orders.yml and webhook-auction.yml. Changes apply on reload.
Keys
Both files use the same structure. <event> is one of the event ids below.
| Key | Default (orders / auction) | Description |
|---|---|---|
username | SigmaOrders / SigmaAuction | Sender name shown in Discord; empty = the webhook's own name |
titles.<event> | see below | Embed title |
colors.<event> | see below | Embed color: 0xRRGGBB, #RRGGBB or a decimal number |
footer.text | SigmaOrders / SigmaAuction | Embed footer |
descriptions.<event> | multi-line template | Embed body, one list entry per line; Discord markdown allowed. Empty = built-in text |
item-formatting.item-name-template | {material-name}{custom-item}{enchantments} | Orders file only. How {item-name} is built |
item-formatting.custom-item-format | ({custom-item-id}) | Orders file only. Fills {custom-item} for custom plugin items, empty otherwise |
item-formatting.enchantments-format | [Enchanted] | Orders file only. Fills {enchantments} for enchanted items, empty otherwise |
Events
| Event id | File | Sent when | Default title | Default color |
|---|---|---|---|---|
order-created | orders | An order is created | New Order | 0x00ff00 |
order-fulfilled | orders | An order is fully delivered | Order Fulfilled | 0x0099ff |
order-cancelled | orders | An order is cancelled | Order Cancelled | 0xff0000 |
order-expired | orders | An order expires | Order Expired | 0xff9900 |
listing-created | auction | A listing is created | New Listing | 0x00ff00 |
listing-sold | auction | A listing is bought | Item Sold | 0xffd700 |
listing-expired | auction | A listing expires | Listing Expired | 0xff9900 |
listing-removed | auction | The seller or staff removes a listing | Listing Removed | 0xff0000 |
Placeholders
| File | Placeholders |
|---|---|
webhook-orders.yml | {id}, {player} (owner), {expired-time} (yyyy-MM-dd HH:mm:ss), {item-name}, {quantity}, {delivered}, {total}, {price-per-item}, {total-price} |
webhook-auction.yml | {seller}, {buyer}, {item}, {price}, {amount}, {expires} |
In order templates, lines that contain item placeholders are repeated once per item in the order. The shipped titles also start with an emoji.