mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
several small adjustments smiley
This commit is contained in:
parent
f280311212
commit
cd624c9066
4 changed files with 47 additions and 37 deletions
|
@ -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 })
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue