mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-18 19:07:16 -04:00
[nextgen/cardstack] migrate google, google images to cardstack
This commit is contained in:
parent
ba7c76ff04
commit
0433c3a785
6 changed files with 95 additions and 91 deletions
|
@ -10,6 +10,7 @@ const { editOrReply } = require('#utils/message')
|
|||
const { STATICS } = require('#utils/statics')
|
||||
|
||||
const { ApplicationCommandOptionTypes, InteractionContextTypes, ApplicationIntegrationTypes } = require('detritus-client/lib/constants');
|
||||
const {createDynamicCardStack} = require("#cardstack/index");
|
||||
|
||||
function renderFooter(context, doodle){
|
||||
if(doodle.super_g) return {
|
||||
|
@ -291,10 +292,9 @@ module.exports = {
|
|||
}
|
||||
|
||||
if(!pages.length) return editOrReply(context, createEmbed("warning", context, `No results found.`))
|
||||
|
||||
await paginator.createPaginator({
|
||||
context,
|
||||
pages: formatPaginationEmbeds(pages)
|
||||
|
||||
return await createDynamicCardStack(context, {
|
||||
cards: pages
|
||||
});
|
||||
}catch(e){
|
||||
console.log(e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue