Added title formatting

This commit is contained in:
SkyfallWasTaken 2024-07-23 09:49:14 +01:00
parent ded273b12c
commit 9f8cf78b53

View file

@ -106,6 +106,14 @@ pub fn format_deleted_item(item: &ShopItem) -> String {
pub fn get_slack_body(diffs: &Vec<String>) -> serde_json::Value {
let mut blocks_vec = vec![];
blocks_vec.push(json!({
"type": "header",
"text": {
"type": "plain_text",
"text": "Changes detected in the shop",
"emoji": true
}
}));
for diff in diffs {
blocks_vec.push(json!({
"type": "section",