mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
minor bug fixes
This commit is contained in:
parent
ec77a6dc7a
commit
41df7da781
1 changed files with 3 additions and 1 deletions
4
index.js
4
index.js
|
|
@ -52,7 +52,7 @@ exports.Client.prototype.getChannel = function( id ) {
|
|||
|
||||
exports.Client.prototype.triggerEvent = function( event, args ) {
|
||||
|
||||
if ( !this.ready && event !== "raw" && event !== "disconnected" ) { //if we're not even loaded yet, don't try doing anything because it always ends badly!
|
||||
if ( !this.ready && event !== "raw" && event !== "disconnected" && event !== "debug" ) { //if we're not even loaded yet, don't try doing anything because it always ends badly!
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -364,6 +364,8 @@ exports.Client.prototype.connectWebsocket = function( cb ) {
|
|||
|
||||
exports.Client.prototype.logout = function( callback ) {
|
||||
|
||||
callback = callback || function(){};
|
||||
|
||||
var self = this;
|
||||
|
||||
Internal.XHR.logout( self.token, function( err ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue