Skip to content

Commit

Permalink
Check received content for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver committed Sep 19, 2021
1 parent 08efe2f commit e017838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/discord/discord_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func handle(mux *http.ServeMux, gateway string) {
fmt.Fprintln(w, string(gatewayJson))
case uri == discord.EndpointChannelMessages(channelID) && r.Method == http.MethodPost:
// https://discord.com/api/v8/channels/fake-discord-channel-id/messages
if !strings.Contains(content, "Queue...") {
if content == "" {
http.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest)
return
}
Expand Down

0 comments on commit e017838

Please sign in to comment.