working locked applications
This commit is contained in:
parent
97d607871c
commit
e377117d33
6 changed files with 116 additions and 11 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue