No description
Find a file
2015-11-20 20:44:09 +00:00
.vscode Built internal changes 2015-11-18 16:59:37 +00:00
docs Finished channels 2015-11-20 20:44:09 +00:00
examples Updated pingpong 2015-11-17 01:31:17 -08:00
lib Finished channels 2015-11-20 20:44:09 +00:00
ref Fixed Colours again 2015-10-28 15:09:55 +00:00
src Finished channels 2015-11-20 20:44:09 +00:00
test Added setAvatar 2015-11-19 16:52:01 +00:00
web-dist 4.1.1 dists 2015-10-30 21:28:48 +00:00
.gitignore ignored spotify test 2015-11-09 18:05:16 +00:00
.npmignore Updated npmignore to ignore src 2015-10-26 18:45:00 +00:00
.travis.yml Fixed travis again 2015-11-06 20:19:24 +00:00
entrypoint.js Switched to dynamic entrypoint 2015-11-09 18:28:13 +00:00
gruntfile.js Fixed grunt babel path and added --dev option 2015-11-15 12:45:43 -08:00
jsconfig.json Deleted examples, beginning to write in EC6. 2015-08-23 16:55:23 +01:00
LICENSE Initial commit 2015-08-10 14:36:26 +01:00
package.json Switched to dynamic entrypoint 2015-11-09 18:28:13 +00:00
README.md README 2015-11-18 17:39:55 +00:00
TODO.md added TODO list 2015-10-26 20:31:34 +00:00

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);