diff --git a/discord/report_new_matches.ps1 b/discord/report_new_matches.ps1 index a80b9e9..8447f1a 100644 --- a/discord/report_new_matches.ps1 +++ b/discord/report_new_matches.ps1 @@ -69,7 +69,13 @@ function send-discord-losers { $payload = [PSCustomObject]@{ content = $content } + if($payload.content -eq "") { + $payload = [PSCustomObject]@{ + content = "Nothing to report" + } + } Invoke-RestMethod -Uri $webhookurl_losers -Method Post -Body ($payload | ConvertTo-Json) -ContentType 'Application/Json' + } $map_map = @{