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
@@ -5,6 +5,7 @@ import { hasAccess } from '../core/permissions.js';
|
||||
import { handleGiteaModal } from '../services/gitea/gitea-modals.js';
|
||||
import { handlePollComponent } from '../services/polls/poll-service.js';
|
||||
import { handleTicketComponent } from '../services/tickets/ticket-service.js';
|
||||
import { handleVoiceComponent, handleVoiceModal } from '../services/voice/voice-service.js';
|
||||
import { errorEmbed } from '../ui/embeds.js';
|
||||
|
||||
const log = createLogger('interactions');
|
||||
@@ -15,6 +16,7 @@ export const name = Events.InteractionCreate;
|
||||
const routes = [
|
||||
{ prefix: 'ticket:', component: handleTicketComponent },
|
||||
{ prefix: 'poll:', component: handlePollComponent },
|
||||
{ prefix: 'voice:', component: handleVoiceComponent, modal: handleVoiceModal },
|
||||
{ prefix: 'issue:', modal: handleGiteaModal },
|
||||
{ prefix: 'pr:', modal: handleGiteaModal },
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user