2.6.7 - update to support an apparently new discord api change

This commit is contained in:
hydrabolt
2015-08-20 17:02:59 +01:00
parent f65515fa55
commit 369cdcd7de
4 changed files with 6 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ New update features **big speed boosts** (everything cached and sorted with arou
**[For more information, click here.](https://github.com/hydrabolt/discord.js/wiki)**
### This module is still in alpha!
### This module is still in alpha - especially the newer versions!
This node module is still in alpha, and some methods and functions may change or completely disappear!

View File

@@ -786,7 +786,7 @@ exports.Client.prototype.sendMessage = function( destination, toSend, callback,
if ( err ) {
callback( err );
} else {
self.PMList.add( new PMChannel( channel.recipient, channel.id ) );
self.PMList.add( new PMChannel( channel.user, channel.id ) );
setChannId( channel.id );
send();
}

View File

@@ -156,6 +156,7 @@ exports.List.prototype.concatSublists = function( whereList, discriminator ) {
exports.List.prototype.filter = function( key, value, onlyOne, caseInsen ) {
var results = [];
value = change( value );
for ( index in this.contents ) {
@@ -196,9 +197,10 @@ exports.List.prototype.getValues = function( key ){
}
exports.List.prototype.deepFilter = function( keys, value, onlyOne ) {
exports.List.prototype.deepFilter = function( keys, value, onlyOne, caseInsen ) {
var results = [];
value = change( value );
for ( index in this.contents ) {

View File

@@ -1,6 +1,6 @@
{
"name": "discord.js",
"version": "2.6.6",
"version": "2.6.7",
"description": "A way to interface with the Discord API",
"main": "index.js",
"scripts": {