Skip to content

Commit

Permalink
Remove empty username field from WEBHOOK_DATA
Browse files Browse the repository at this point in the history
Sending empty username string causes 400 error being returned from Discord API
  • Loading branch information
Piotr Frankiewicz authored Jan 11, 2023
1 parent a713dd3 commit f751ded
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions send.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ TIMESTAMP=$(date --utc +%FT%TZ)

if [ -z $LINK_ARTIFACT ] || [ $LINK_ARTIFACT = false ] ; then
WEBHOOK_DATA='{
"username": "",
"avatar_url": "https://gitlab.com/favicon.png",
"embeds": [ {
"color": '$EMBED_COLOR',
Expand Down Expand Up @@ -77,7 +76,6 @@ if [ -z $LINK_ARTIFACT ] || [ $LINK_ARTIFACT = false ] ; then
}'
else
WEBHOOK_DATA='{
"username": "",
"avatar_url": "https://gitlab.com/favicon.png",
"embeds": [ {
"color": '$EMBED_COLOR',
Expand Down

0 comments on commit f751ded

Please sign in to comment.