mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
minor small fixes
This commit is contained in:
4
index.js
4
index.js
@@ -275,7 +275,7 @@ exports.Client.prototype.channelFromId = function(id){
|
||||
|
||||
exports.Client.prototype.getChannelLogs = function(channel, amount, cb){
|
||||
|
||||
amount = amount || 0;
|
||||
amount = amount+1 || 0;
|
||||
var client = this;
|
||||
|
||||
request
|
||||
@@ -289,6 +289,8 @@ exports.Client.prototype.getChannelLogs = function(channel, amount, cb){
|
||||
datList.add( new Message(item, channel) );
|
||||
}
|
||||
|
||||
datList.removeIndex(0);
|
||||
|
||||
cb(datList);
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user