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
|
* 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>;
|
disconnectGuild(guildId: string): Promise<void>;
|
||||||
connect(guildId: string, channelId: string): Promise<unknown>;
|
connect(guildId: string, channelId: string): Promise<unknown>;
|
||||||
getStatus(): { activeGuildId: string | null; activeChannelId: string | null };
|
getStatus(): {
|
||||||
}) | null = null;
|
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,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user