mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-17 02:17:05 -04:00
dont create paginator for one page
This commit is contained in:
parent
8e489318e5
commit
951cb87a82
3 changed files with 16 additions and 0 deletions
|
@ -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 = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue