To follow up on this, is it even possible? Or can the bot only respond in the text channel where the
To follow up on this, is it even possible? Or can the bot only respond in the text channel where the application command was triggered from?


Route pattern matching considers the entire request URL, including the query parameter string. Since route patterns may not contain query parameters, the only way to have a route pattern match URLs with query parameters is to terminate it with a wildcard, *.https://developers.cloudflare.com/workers/configuration/routing/routes/#route-patterns-may-not-contain-any-query-parameters
/. E.G- it will match toonetsockswrangler*/**//something/i/dont/wantexport default {
async fetch(request: Request, env: Env, ctx:EventContext<Env,any,any>) {
const url = new URL(request.url);
if (url.pathname !== "/interactions") {
return Response.redirect(
"https://github.com/User9684/user-utils",
301
);
}
const verified = await VerifyRequest(request, env);
if (!verified) {
return new Response("erm, no???", {
status: 401,
});
}
const requestBody: Interaction = await request.json();
ctx.waitUntil(await (async () => {
})())
return Response.json({
type: CallbackType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE
})
},
};