mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
YAN fix
This commit is contained in:
parent
5f490f26fb
commit
fa7fb4bd37
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -29,7 +29,7 @@ exports.Client = function( options ) {
|
|||
|
||||
exports.Client.prototype.triggerEvent = function( event, args ) {
|
||||
|
||||
if ( !this.ready && event !== "raw" ) { //if we're not even loaded yet, don't try doing anything because it always ends badly!
|
||||
if ( !this.ready && event !== "raw" && event !== "disconnected" ) { //if we're not even loaded yet, don't try doing anything because it always ends badly!
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue