style(voice): biome format media handler + screen controller
This commit is contained in:
@@ -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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user