webhook: Add missing Content-Type for Pong

This commit is contained in:
diamondburned 2022-08-22 12:37:18 -07:00
parent dcfc9b19d1
commit 9e9f90a652
No known key found for this signature in database
GPG Key ID: D78C4471CE776659
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ func (s *InteractionServer) handle(w http.ResponseWriter, r *http.Request) {
switch ev.Data.(type) {
case *discord.PingInteraction:
w.Header().Set("Content-Type", "application/json")
json.NewEncoder(w).Encode(api.InteractionResponse{
Type: api.PongInteraction,
})