several small adjustments smiley

This commit is contained in:
bignutty 2024-08-08 23:11:40 +02:00
parent f280311212
commit cd624c9066
4 changed files with 47 additions and 37 deletions

View file

@ -4,7 +4,7 @@ const { paginator } = require('#client');
const { createEmbed, formatPaginationEmbeds, page } = require('#utils/embed')
const { link, pill } = require('#utils/markdown')
const { editOrReply } = require('#utils/message')
const { STATICS } = require('#utils/statics')
const { STATICS, STATIC_ASSETS } = require('#utils/statics')
// TODO: Turn this into a general purpose permissions constant
const { Permissions, InteractionCallbackTypes } = require("detritus-client/lib/constants");
@ -64,7 +64,13 @@ async function quoraPaginator(context, pages, refMappings, currentRef) {
}
await sctx.editOrRespond({
embeds: [
createEmbed("loading", context, "Loading quora result...")
createEmbed("image", context, {
url: STATIC_ASSETS.chat_loading,
provider: {
icon: STATICS.quora,
text: `Quora • ${context.application.name}`
}
})
],
components: []
})
@ -110,7 +116,7 @@ async function quoraPaginator(context, pages, refMappings, currentRef) {
options: selectOptions
})
await ctx.editOrRespond({ content: `<@${context.userId}> Select a question.`, components })
await ctx.editOrRespond({ embeds: context.response.embeds, components })
}
})
}