dont create paginator for one page

This commit is contained in:
derpystuff 2022-06-28 17:54:08 +02:00
parent 8e489318e5
commit 951cb87a82
3 changed files with 16 additions and 0 deletions

View file

@ -77,6 +77,9 @@ module.exports.createEmbed = function(type, context, content){
// Adds formatted page numbers to the embed footer
module.exports.formatPaginationEmbeds = function(embeds){
// No formatting if we only have one page
if(embeds.length == 1) return embeds;
let i = 0;
let l = embeds.length;
let formatted = [];