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:
12 files changed
+1277
-1
No files matched your search
@@ -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],
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user