working locked applications

This commit is contained in:
nin0 2025-05-24 17:17:45 -04:00
parent 97d607871c
commit e377117d33
Signed by: nin0
SSH key fingerprint: SHA256:NOoDnFVvZNFvqfXCIhzr6oCTDImZAbTTuyAysZ8Ufk8
6 changed files with 116 additions and 11 deletions

View file

@ -19,6 +19,8 @@ import { match } from "./utils";
import { PendingApplicationMessage } from "./components/PendingApplicationMessage";
import { ApplicationContent } from "./components/ApplicationContent";
import("./lockUnlock");
export async function setupJoinRequestHandler(shard: Shard) {
shard.ws?.on("message", async (d) => {
const data = JSON.parse(d.toString("utf8"));
@ -127,7 +129,7 @@ export async function setupJoinRequestHandler(shard: Shard) {
}
const response: Response = JSON.parse(
application.responses
application ? application.responses : {} // this will never be used if no applications
);
const msg = await client.rest.channels.createMessage(