No description
Find a file
2015-11-19 20:51:34 +00:00
.vscode Built internal changes 2015-11-18 16:59:37 +00:00
docs Events 2015-11-19 20:51:34 +00:00
examples Updated pingpong 2015-11-17 01:31:17 -08:00
lib More docs 2015-11-19 20:34:05 +00:00
ref
src More docs 2015-11-19 20:34:05 +00:00
test Added setAvatar 2015-11-19 16:52:01 +00:00
web-dist
.gitignore
.npmignore
.travis.yml
entrypoint.js
gruntfile.js Fixed grunt babel path and added --dev option 2015-11-15 12:45:43 -08:00
jsconfig.json
LICENSE
package.json
README.md README 2015-11-18 17:39:55 +00:00
TODO.md

discord.js

Welcome to the rewrite branch!

The rewrite branch was created as a way of completely rewriting the API (once again) for complete stability. Versions <= 4.1.1 of the API would always eventually crash for one reason or another.

So far, the rewrite branch seems to have achieved what was wanted, as it is much more stable and can handle mass joining and leaving of servers. Users, channels and servers are always cached properly, and the only time of expected crashes are when an error occurs in the WebSocket.

You can start using the rewrite branch, but it is a breaking change. The documentation isn't done, but H here is the main notable change:

// old method:
client.getUser("id", 12);
client.getChannel("id", 12);
client.getServer("id", 12);
	// etc...
	
// new method:
client.users.get("id", 12);
client.channels.get("id", 12);
client.servers.get("id", 12);