mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
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:
committed by
Schuyler Cebulskie
parent
25531170ec
commit
7cb2e8eef7
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user