Added resolver

This commit is contained in:
hydrabolt
2015-10-31 22:24:05 +00:00
parent 5ccaca915b
commit cc3f9d931a
4 changed files with 123 additions and 6 deletions

View File

@@ -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;
}

View 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);
};