Skip to main content

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.

KeyDefault (orders / auction)Description
usernameSigmaOrders / SigmaAuctionSender name shown in Discord; empty = the webhook's own name
titles.<event>see belowEmbed title
colors.<event>see belowEmbed color: 0xRRGGBB, #RRGGBB or a decimal number
footer.textSigmaOrders / SigmaAuctionEmbed footer
descriptions.<event>multi-line templateEmbed 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 idFileSent whenDefault titleDefault color
order-createdordersAn order is createdNew Order0x00ff00
order-fulfilledordersAn order is fully deliveredOrder Fulfilled0x0099ff
order-cancelledordersAn order is cancelledOrder Cancelled0xff0000
order-expiredordersAn order expiresOrder Expired0xff9900
listing-createdauctionA listing is createdNew Listing0x00ff00
listing-soldauctionA listing is boughtItem Sold0xffd700
listing-expiredauctionA listing expiresListing Expired0xff9900
listing-removedauctionThe seller or staff removes a listingListing Removed0xff0000

Placeholders​

FilePlaceholders
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.