mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-04-13 07:17:12 +03:00
Add loadOlderMessages function to discord.js
This commit is contained in:
parent
019b96a1e0
commit
eae99d18f1
@ -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;
|
||||
}
|
||||
};
|
||||
})();
|
||||
|
Loading…
x
Reference in New Issue
Block a user