mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
* add test for Client.destroy()
* propagate errors in ClientManager.destroy
If the promise returned by logout() rejects, previously
it would be completely uncaught, and just return an
eternally pending promise that never resolved.
* fix RESTMethods.logout
Without a data argument, the POST that superagent sends causes
the discord server to reply with a HTTP 400 error:
text: '{"Content-Type": "Expected Content-Type to be one of set([\'application/json\'])."}',
* fix Client.destroy
_timeouts and _intervals were changed to Set objects in
commit
|
||
|---|---|---|
| .. | ||
| destroy.js | ||
| random.js | ||
| shard.js | ||
| sharder.js | ||