feat(voice): add temporary voice channel manager

Joining the trigger channel must feel instant and never leave orphan channels behind, so the ownership is stored in SQLite, empty channels are deleted after a short grace period and a startup sweep cleans up whatever a restart left behind.
This commit is contained in:
BlackAngelTV committed 2026-09-15 14:51:17 +02:00
1 parent ef1bedbc65
commit 5191942d5a
12 files changed
+1277 -1

No files matched your search

+2
View File
@@ -6,6 +6,7 @@ import { Client, Collection, GatewayIntentBits, Partials } from 'discord.js';
* - GuildMembers (privileged): welcome, departures, role assignment
* - GuildModeration: ban/kick audit events
* - GuildMessages: /clear and ticket channels
* - GuildVoiceStates: temporary voice channels (M14)
* MessageContent is intentionally not requested.
*/
export function createClient() {
@@ -15,6 +16,7 @@ export function createClient() {
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildModeration,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildVoiceStates,
],
partials: [Partials.GuildMember],
});