add paging to guild features

This commit is contained in:
derpystuff 2023-05-21 00:46:20 +02:00
parent 59d3791ea2
commit baa8e6d32b
3 changed files with 54 additions and 25 deletions

View file

@ -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)