mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
small fixes
This commit is contained in:
4
index.js
4
index.js
@@ -78,6 +78,10 @@ exports.Client.prototype.cacheServer = function( id, cb, members ) {
|
||||
.set( "authorization", self.token )
|
||||
.end( function( err, res ) {
|
||||
|
||||
if(err){
|
||||
throw err;
|
||||
}
|
||||
|
||||
var channelList = res.body;
|
||||
for ( channel of channelList ) {
|
||||
server.channels.add( new Channel( channel, server ) );
|
||||
|
||||
Reference in New Issue
Block a user