mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-27 17:23:00 +00:00
webhook: Add missing Content-Type for Pong
This commit is contained in:
parent
dcfc9b19d1
commit
9e9f90a652
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue