mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
version bump to 3.1.3
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "discord.js",
|
"name": "discord.js",
|
||||||
"version": "3.1.2",
|
"version": "3.1.3",
|
||||||
"description": "A way to interface with the Discord API",
|
"description": "A way to interface with the Discord API",
|
||||||
"main": "./lib/index.js",
|
"main": "./lib/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -530,7 +530,11 @@ var Client = (function () {
|
|||||||
callback(err);
|
callback(err);
|
||||||
reject(err);
|
reject(err);
|
||||||
} else {
|
} else {
|
||||||
self.serverCreateListener.set(res.body.guild.id, [resolve, callback]);
|
if (self.getServer("id", res.body.guild.id)) {
|
||||||
|
resolve(self.getServer("id", res.body.guild.id));
|
||||||
|
} else {
|
||||||
|
self.serverCreateListener.set(res.body.guild.id, [resolve, callback]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -1435,7 +1439,6 @@ function getGateway() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Client;
|
module.exports = Client;
|
||||||
|
|
||||||
},{"./Endpoints.js":2,"./PMChannel.js":3,"./channel.js":4,"./invite.js":6,"./message.js":7,"./server.js":8,"./user.js":9,"fs":10,"superagent":11,"ws":14}],2:[function(require,module,exports){
|
},{"./Endpoints.js":2,"./PMChannel.js":3,"./channel.js":4,"./invite.js":6,"./message.js":7,"./server.js":8,"./user.js":9,"fs":10,"superagent":11,"ws":14}],2:[function(require,module,exports){
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
@@ -1450,7 +1453,6 @@ exports.LOGOUT = exports.AUTH + "/logout";
|
|||||||
exports.USERS = exports.API + "/users";
|
exports.USERS = exports.API + "/users";
|
||||||
exports.SERVERS = exports.API + "/guilds";
|
exports.SERVERS = exports.API + "/guilds";
|
||||||
exports.CHANNELS = exports.API + "/channels";
|
exports.CHANNELS = exports.API + "/channels";
|
||||||
|
|
||||||
},{}],3:[function(require,module,exports){
|
},{}],3:[function(require,module,exports){
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
@@ -1513,7 +1515,6 @@ var PMChannel = (function () {
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
module.exports = PMChannel;
|
module.exports = PMChannel;
|
||||||
|
|
||||||
},{}],4:[function(require,module,exports){
|
},{}],4:[function(require,module,exports){
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
@@ -1536,7 +1537,7 @@ var Channel = (function () {
|
|||||||
_createClass(Channel, [{
|
_createClass(Channel, [{
|
||||||
key: "equals",
|
key: "equals",
|
||||||
value: function equals(object) {
|
value: function equals(object) {
|
||||||
return object.id === this.id;
|
return object && object.id === this.id;
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
key: "addMessage",
|
key: "addMessage",
|
||||||
@@ -1594,7 +1595,6 @@ var Channel = (function () {
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
module.exports = Channel;
|
module.exports = Channel;
|
||||||
|
|
||||||
},{}],5:[function(require,module,exports){
|
},{}],5:[function(require,module,exports){
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
@@ -1608,7 +1608,6 @@ var Discord = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
module.exports = Discord;
|
module.exports = Discord;
|
||||||
|
|
||||||
},{"./Client.js":1,"./Endpoints.js":2,"superagent":11}],6:[function(require,module,exports){
|
},{"./Client.js":1,"./Endpoints.js":2,"superagent":11}],6:[function(require,module,exports){
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
@@ -1645,7 +1644,6 @@ var Invite = (function () {
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
module.exports = Invite;
|
module.exports = Invite;
|
||||||
|
|
||||||
},{}],7:[function(require,module,exports){
|
},{}],7:[function(require,module,exports){
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
@@ -1719,7 +1717,6 @@ var Message = (function () {
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
module.exports = Message;
|
module.exports = Message;
|
||||||
|
|
||||||
},{}],8:[function(require,module,exports){
|
},{}],8:[function(require,module,exports){
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
@@ -1894,7 +1891,6 @@ var Server = (function () {
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
module.exports = Server;
|
module.exports = Server;
|
||||||
|
|
||||||
},{}],9:[function(require,module,exports){
|
},{}],9:[function(require,module,exports){
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
@@ -1952,7 +1948,6 @@ var User = (function () {
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
module.exports = User;
|
module.exports = User;
|
||||||
|
|
||||||
},{}],10:[function(require,module,exports){
|
},{}],10:[function(require,module,exports){
|
||||||
|
|
||||||
},{}],11:[function(require,module,exports){
|
},{}],11:[function(require,module,exports){
|
||||||
|
|||||||
4
web-dist/discord.min.js
vendored
4
web-dist/discord.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user