add message

This commit is contained in:
derpystuff 2023-01-12 14:45:50 +01:00
parent 2b618e536e
commit c4898aa6b0

View file

@ -58,9 +58,9 @@ async function quoraPaginator(context, pages, refMappings, currentRef){
listener.stopWithoutUpdate() listener.stopWithoutUpdate()
const components = new Components({ const components = new Components({
timeout: 10000, timeout: 100000,
run: async (sctx) => { run: async (sctx) => {
if (sctx.userId !== context.userId || !context.values) { if (sctx.userId !== context.userId) {
return await sctx.respond(InteractionCallbackTypes.DEFERRED_UPDATE_MESSAGE); return await sctx.respond(InteractionCallbackTypes.DEFERRED_UPDATE_MESSAGE);
} }
await sctx.editOrRespond({ await sctx.editOrRespond({
@ -110,7 +110,7 @@ async function quoraPaginator(context, pages, refMappings, currentRef){
options: selectOptions options: selectOptions
}) })
await ctx.editOrRespond({components}) await ctx.editOrRespond({content: `<@${context.userId}> Select a question.`, components})
} }
}) })
} }