Xh4H / Discord.jl

The Julia Discord API Wrapper
MIT License
152 stars 23 forks source link

Fix reconnection issue & some minor things #32

Closed tk3369 closed 3 years ago

tk3369 commented 3 years ago
  1. Fixes a problem where reconnection fails after the IO stream got closed.
  2. REQUIRE isn't used anymore since Julia 1.0 so I removed it.
  3. Manifest.toml is normally not distributed for packages.

This patch is being used by HoJBot.jl and it works well. An example of proper reconnection is shown below:

┌ Warning: Unable to close existing connection
│   ex = IOError: stream is closed or unusable
└ @ Discord ~/.julia/packages/Discord/ZFFOq/src/gateway/gateway.jl:372
┌ Info: Reconnecting
│   time = 2021-03-24T16:14:11.508
│   conn = 4
│   resume = true
└   zombie = false
christopher-dG commented 3 years ago

Cool, thanks for the cleanup!