rmcafee / discord_ex

Discord Elixir Library
MIT License
47 stars 13 forks source link

Added a new opcode heartbeat_interval #29

Closed Grafikart closed 7 years ago

Grafikart commented 7 years ago

A new opcode was introduced by Discord. When I tried to connect my bot to a voice channel I was receiving

{"op":8,"d":{"heartbeat_interval":55000}}

Which was unhandled by opcode(codes, value) when is_integer(value) and crashed the bot :(

I did some additional changes to avoid alerts when compiling on elixir 1.4

rmcafee commented 7 years ago

Thanks for the PR @Grafikart