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 * disconnect/reconnect the @discordjs audio connection around a GoLive
* stream (Discord allows only one voice session per user). * 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>; disconnectGuild(guildId: string): Promise<void>;
getStatus(): { activeGuildId: string | null; activeChannelId: string | null }; connect(guildId: string, channelId: string): Promise<unknown>;
}) | null = null; getStatus(): {
activeGuildId: string | null;
activeChannelId: string | null;
};
})
| null = null;
setVoiceController(accessor: typeof this.voiceControllerAccessor): void { setVoiceController(accessor: typeof this.voiceControllerAccessor): void {
this.voiceControllerAccessor = accessor; this.voiceControllerAccessor = accessor;
@@ -87,9 +87,7 @@ export class ScreenShareController {
setTimeout( setTimeout(
() => () =>
reject( reject(
new Error( new Error("Timed out joining voice channel for screen share"),
"Timed out joining voice channel for screen share",
),
), ),
15000, 15000,
), ),