style(voice): biome format media handler + screen controller

This commit is contained in:
asepharyana
2026-08-03 08:49:59 +07:00
parent 02e2243a98
commit 55d28dc928
2 changed files with 11 additions and 8 deletions
@@ -107,11 +107,16 @@ export class MediaHandler {
* disconnect/reconnect the @discordjs audio connection around a GoLive
* stream (Discord allows only one voice session per user).
*/
private voiceControllerAccessor: (() => {
private voiceControllerAccessor:
| (() => {
disconnectGuild(guildId: string): Promise<void>;
connect(guildId: string, channelId: string): Promise<unknown>;
getStatus(): { activeGuildId: string | null; activeChannelId: string | null };
}) | null = null;
getStatus(): {
activeGuildId: string | null;
activeChannelId: string | null;
};
})
| null = null;
setVoiceController(accessor: typeof this.voiceControllerAccessor): void {
this.voiceControllerAccessor = accessor;
@@ -87,9 +87,7 @@ export class ScreenShareController {
setTimeout(
() =>
reject(
new Error(
"Timed out joining voice channel for screen share",
),
new Error("Timed out joining voice channel for screen share"),
),
15000,
),