feat(thread-discovery): implement separate endpoint for fetching threads and update channel loading logic

This commit is contained in:
MythEclipse
2026-05-13 21:22:05 +07:00
parent 0b8111de81
commit 95cb8b837a
4 changed files with 85 additions and 16 deletions
+8
View File
@@ -114,6 +114,14 @@ export function startWebserver(
}
});
app.get("/api/guilds/:guildId/threads", async (req, res, next) => {
try {
res.json(await voiceController.listThreads(req.params.guildId));
} catch (error) {
next(error);
}
});
app.post("/api/connect", async (req, res, next) => {
try {
const { guildId, channelId } = req.body as {