Fix recipient resolution

This commit is contained in:
Amish Shah
2016-08-22 22:31:22 +01:00
parent c308a2a01c
commit c96ecec24c
4 changed files with 4 additions and 7 deletions

View File

@@ -49,7 +49,7 @@ class ClientDataManager {
if (data.type === Constants.ChannelTypes.DM) {
channel = new DMChannel(this.client, data);
} else {
guild = guild || this.get('guilds', data.guild_id);
guild = guild || this.client.guilds.get(data.guild_id);
if (guild) {
if (data.type === Constants.ChannelTypes.text) {
channel = new TextChannel(guild, data);