Add loadOlderMessages function to discord.js

This commit is contained in:
chylex committed 2016-10-25 15:07:47 +02:00
1 parent 019b96a1e0
commit eae99d18f1
1 file changed
+7
+7
View File
@@ -67,6 +67,13 @@ var DISCORD = (function(){
}
return obj.channel.length === 0 ? null : obj;
},
/*
* Forces the message column to scroll all the way up to load older messages.
*/
loadOlderMessages: function(){
DOM.cls("messages")[0].scrollTop = 0;
}
};
})();