1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-05-05 04:45:01 +00:00

discord: Fix unmarshaling PingInteraction

This commit is contained in:
diamondburned 2021-12-27 15:10:09 -08:00
parent c14e68ac77
commit bfd668ff99
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -72,6 +72,7 @@ func (e *InteractionEvent) UnmarshalJSON(b []byte) error {
switch target.Type {
case PingInteractionType:
e.Data = &PingInteraction{}
return nil // Ping isn't actually an object.
case CommandInteractionType:
e.Data = &CommandInteraction{}
case ComponentInteractionType: