add disconnect event, document warn and debug events (#702)

* add documentation for events, and add a disconnect event, because i know people use that

* generate docs, and fix a hastily copied docstring

* fix permissions freak out
This commit is contained in:
Gus Caplan
2016-09-13 23:12:10 -05:00
committed by Schuyler Cebulskie
parent 25531170ec
commit 7cb2e8eef7
6 changed files with 26 additions and 11 deletions

View File

@@ -11,7 +11,7 @@ class TypingStartHandler extends AbstractHandler {
if (channel && user) {
if (channel.type === 'voice') {
client.emit('warn', `Discord sent a typing packet to voice channel ${channel.id}`);
client.emit(Constants.Events.WARN, `Discord sent a typing packet to voice channel ${channel.id}`);
return;
}
if (channel._typing.has(user.id)) {