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:
parent
c14e68ac77
commit
bfd668ff99
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue