mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-17 18:37:07 -04:00
add no result warnings
This commit is contained in:
parent
7f2d87c4b5
commit
58b22826df
5 changed files with 8 additions and 1 deletions
|
@ -121,6 +121,8 @@ module.exports = {
|
|||
if(sp) pages.push(sp)
|
||||
}
|
||||
|
||||
if(!pages.length) return editOrReply(context, {embeds:[createEmbed("warning", context, `No results found.`)]})
|
||||
|
||||
pages = formatPaginationEmbeds(pages)
|
||||
const paging = await paginator.createPaginator({
|
||||
context,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue