mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-06-13 22:02:18 +03:00
Add hasMoreMessages to discord.js
This commit is contained in:
parent
0d6386f31c
commit
810ef6d343
@ -69,6 +69,13 @@ var DISCORD = (function(){
|
|||||||
return obj.channel.length === 0 ? null : obj;
|
return obj.channel.length === 0 ? null : obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Returns true if there are more messages available.
|
||||||
|
*/
|
||||||
|
hasMoreMessages: function(){
|
||||||
|
return DOM.cls("messages")[0].children[0].classList.contains("has-more");
|
||||||
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Forces the message column to scroll all the way up to load older messages.
|
* Forces the message column to scroll all the way up to load older messages.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user