mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
Added resolver
This commit is contained in:
@@ -83,6 +83,8 @@ var InternalClient = (function () {
|
||||
});
|
||||
};
|
||||
|
||||
// def logout
|
||||
|
||||
InternalClient.prototype.logout = function logout() {
|
||||
var _this = this;
|
||||
|
||||
@@ -205,12 +207,10 @@ var InternalClient = (function () {
|
||||
// format: https://discordapi.readthedocs.org/en/latest/reference/channels/messages.html#message-format
|
||||
var channel = self.channels.get("id", data.channel_id);
|
||||
if (channel) {
|
||||
|
||||
channel.messages.add(new Message(data, channel, client));
|
||||
} else {
|
||||
client.emit("warn", "message created but channel is not cached");
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
7
lib/Client/Resolver/Resolver.js
Normal file
7
lib/Client/Resolver/Resolver.js
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
var Resolver = function Resolver() {
|
||||
_classCallCheck(this, Resolver);
|
||||
};
|
||||
Reference in New Issue
Block a user