From 55d28dc9285078e5f4fecfb9fa54e22db0c853a2 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Mon, 3 Aug 2026 08:49:59 +0700 Subject: [PATCH] style(voice): biome format media handler + screen controller --- .../src/modules/command-handler/media.handler.ts | 15 ++++++++++----- .../voice-recording/screenShareController.ts | 4 +--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/services/discord-gateway/src/modules/command-handler/media.handler.ts b/services/discord-gateway/src/modules/command-handler/media.handler.ts index d56f239..d1249a2 100644 --- a/services/discord-gateway/src/modules/command-handler/media.handler.ts +++ b/services/discord-gateway/src/modules/command-handler/media.handler.ts @@ -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: (() => { - disconnectGuild(guildId: string): Promise; - connect(guildId: string, channelId: string): Promise; - getStatus(): { activeGuildId: string | null; activeChannelId: string | null }; - }) | null = null; + private voiceControllerAccessor: + | (() => { + disconnectGuild(guildId: string): Promise; + connect(guildId: string, channelId: string): Promise; + getStatus(): { + activeGuildId: string | null; + activeChannelId: string | null; + }; + }) + | null = null; setVoiceController(accessor: typeof this.voiceControllerAccessor): void { this.voiceControllerAccessor = accessor; diff --git a/services/discord-gateway/src/modules/voice-recording/screenShareController.ts b/services/discord-gateway/src/modules/voice-recording/screenShareController.ts index 0eaf1ab..d8eab1b 100644 --- a/services/discord-gateway/src/modules/voice-recording/screenShareController.ts +++ b/services/discord-gateway/src/modules/voice-recording/screenShareController.ts @@ -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, ),