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