Fix DMs breaking

This commit is contained in:
Amish Shah
2016-08-25 21:38:44 +01:00
parent 8d094cdfb1
commit ccf513a2fc
4 changed files with 4 additions and 67 deletions

View File

@@ -69,7 +69,8 @@ class ClientDataManager {
this.client.emit(Constants.Events.CHANNEL_CREATE, channel);
}
return this.client.channels.set(channel.id, channel);
this.client.channels.set(channel.id, channel);
return channel;
}
return null;
}

View File

@@ -69,7 +69,7 @@ exports.Errors = {
BAD_LOGIN: new Error('incorrect login details were provided'),
};
const API = 'https://discordapp.com/api';
const API = `https://discordapp.com/api/v${exports.DefaultOptions.protocol_version}`;
const Endpoints = exports.Endpoints = {
// general endpoints