From c4898aa6b026656207b64e5d7192fc70a972b4f6 Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Thu, 12 Jan 2023 14:45:50 +0100 Subject: [PATCH] add message --- commands/message/search/quora.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/message/search/quora.js b/commands/message/search/quora.js index 831e23f..2945bf1 100644 --- a/commands/message/search/quora.js +++ b/commands/message/search/quora.js @@ -58,9 +58,9 @@ async function quoraPaginator(context, pages, refMappings, currentRef){ listener.stopWithoutUpdate() const components = new Components({ - timeout: 10000, + timeout: 100000, run: async (sctx) => { - if (sctx.userId !== context.userId || !context.values) { + if (sctx.userId !== context.userId) { return await sctx.respond(InteractionCallbackTypes.DEFERRED_UPDATE_MESSAGE); } await sctx.editOrRespond({ @@ -110,7 +110,7 @@ async function quoraPaginator(context, pages, refMappings, currentRef){ options: selectOptions }) - await ctx.editOrRespond({components}) + await ctx.editOrRespond({content: `<@${context.userId}> Select a question.`, components}) } }) }