mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Fix DMs breaking
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user