mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-11-26 14:16:43 +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 {
|
switch target.Type {
|
||||||
case PingInteractionType:
|
case PingInteractionType:
|
||||||
e.Data = &PingInteraction{}
|
e.Data = &PingInteraction{}
|
||||||
|
return nil // Ping isn't actually an object.
|
||||||
case CommandInteractionType:
|
case CommandInteractionType:
|
||||||
e.Data = &CommandInteraction{}
|
e.Data = &CommandInteraction{}
|
||||||
case ComponentInteractionType:
|
case ComponentInteractionType:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue