mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
Fixed the list... again!
This commit is contained in:
@@ -269,6 +269,16 @@ Commands[ "icon" ] = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Commands["avataritup"] = {
|
||||||
|
oplevel : 2,
|
||||||
|
fn : function( bot, params, message ){
|
||||||
|
|
||||||
|
console.log(message.channel);
|
||||||
|
bot.sendMessage( message, message.channel.server.members.getValues("avatar").join("\n") );
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Commands[ "feedback" ] = {
|
Commands[ "feedback" ] = {
|
||||||
|
|
||||||
oplevel: 0,
|
oplevel: 0,
|
||||||
@@ -466,7 +476,7 @@ function getUser( message, params, bot ) {
|
|||||||
if ( wantedUser ) {
|
if ( wantedUser ) {
|
||||||
if(bot){
|
if(bot){
|
||||||
console.log(bot.getUsers().length());
|
console.log(bot.getUsers().length());
|
||||||
return bot.getUsers().filter("username", wantedUser);
|
return bot.getUsers().filter("username", wantedUser, true);
|
||||||
}
|
}
|
||||||
usr = message.channel.server.members.filter( Discord.isUserID( wantedUser ) ? "id" : "username", wantedUser, true );
|
usr = message.channel.server.members.filter( Discord.isUserID( wantedUser ) ? "id" : "username", wantedUser, true );
|
||||||
}
|
}
|
||||||
|
|||||||
1
index.js
1
index.js
@@ -243,7 +243,6 @@ exports.Client.prototype.cacheServer = function( id, cb, members ) {
|
|||||||
for ( channel of channelList ) {
|
for ( channel of channelList ) {
|
||||||
server.channels.add( new Channel( channel, server ) );
|
server.channels.add( new Channel( channel, server ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
self.serverList.add( server );
|
self.serverList.add( server );
|
||||||
|
|
||||||
cb( server );
|
cb( server );
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ exports.List.prototype.add = function( child ) {
|
|||||||
self.splice( 0, 1 );
|
self.splice( 0, 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( self.filter( self.discriminator, child[ self.discriminator ] ).length === 0 )
|
if ( self.filter( self.discriminator, child[ self.discriminator ] ).length() === 0 )
|
||||||
self.contents.push( child );
|
self.contents.push( child );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "discord.js",
|
"name": "discord.js",
|
||||||
"version": "2.6.5",
|
"version": "2.6.6",
|
||||||
"description": "A way to interface with the Discord API",
|
"description": "A way to interface with the Discord API",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user