mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user