mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 22:53:06 -04:00
add paging to guild features
This commit is contained in:
parent
59d3791ea2
commit
baa8e6d32b
3 changed files with 54 additions and 25 deletions
|
@ -118,12 +118,11 @@ module.exports.formatPaginationEmbeds = function(embeds){
|
|||
ne.embed.footer.text = e.embed.footer.text + ` • Page ${i}/${l}`
|
||||
formatted.push(ne)
|
||||
} else if (e.embeds){
|
||||
let fse = []
|
||||
for(const se of e.embeds){
|
||||
ne.embeds = e.embeds.map((se)=>{
|
||||
se.footer.text = se.footer.text + ` • Page ${i}/${l}`
|
||||
fse.push(se)
|
||||
}
|
||||
ne.embeds = fse
|
||||
return se;
|
||||
})
|
||||
|
||||
formatted.push(ne)
|
||||
} else {
|
||||
formatted.push(e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue