diff --git a/api/send_test.go b/api/send_test.go index d314a14b..c20d3cec 100644 --- a/api/send_test.go +++ b/api/send_test.go @@ -17,7 +17,7 @@ func TestMarshalAllowedMentions(t *testing.T) { }, } - if j := mustMarshal(t, data); j != `{"allowed_mentions":{"parse":[]}}` { + if j := mustMarshal(t, data); j != `{"allowed_mentions":{"parse":[]},"flags":0}` { t.Fatal("Unexpected JSON:", j) } }) @@ -27,7 +27,7 @@ func TestMarshalAllowedMentions(t *testing.T) { Content: "a", } - if j := mustMarshal(t, data); j != `{"content":"a"}` { + if j := mustMarshal(t, data); j != `{"content":"a","flags":0}` { t.Fatal("Unexpected JSON:", j) } }) @@ -39,7 +39,7 @@ func TestMarshalAllowedMentions(t *testing.T) { }, } - if j := mustMarshal(t, data); j != `{"allowed_mentions":{"parse":null,"users":["1","2"]}}` { + if j := mustMarshal(t, data); j != `{"allowed_mentions":{"parse":null,"users":["1","2"]},"flags":0}` { t.Fatal("Unexpected JSON:", j) } })