Skip to content

Commit 3ae8d3c

Browse files
committed
fix: add flags to Discord webhook messages for enhanced functionality
- Updated the Discord webhook message payload to include a "flags" property, improving message handling and visibility.
1 parent aa2b63b commit 3ae8d3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/discord-activity.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
fi
6464
6565
curl -H "Content-Type: application/json" \
66-
-d "{\"content\": $(echo "$MESSAGE" | jq -Rs .)}" \
66+
-d "{\"content\": $(echo "$MESSAGE" | jq -Rs .), \"flags\": 4}" \
6767
"${{ secrets.DISCORD_WEBHOOK }}"
6868
6969
sleep 1 # Rate limit protection
@@ -83,6 +83,6 @@ jobs:
8383
fi
8484
8585
curl -H "Content-Type: application/json" \
86-
-d "{\"content\": $(echo "$MESSAGE" | jq -Rs .)}" \
86+
-d "{\"content\": $(echo "$MESSAGE" | jq -Rs .), \"flags\": 4}" \
8787
"${{ secrets.DISCORD_WEBHOOK }}"
8888
fi

0 commit comments

Comments
 (0)