mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-02 04:52:50 +08:00
fix: address Phase 3 review — Logger type export, PlayerEvents interface, PCM backpressure
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
5afc8c5224
commit
17d2decc91
3 files changed
+30
-7
No files matched your search
@@ -7,7 +7,7 @@ import {
|
||||
exportIdentity,
|
||||
type TS3Identity,
|
||||
} from "./identity.js";
|
||||
import type pino from "pino";
|
||||
import type { Logger } from "../logger.js";
|
||||
|
||||
export interface TS3ClientOptions {
|
||||
host: string;
|
||||
@@ -33,9 +33,9 @@ export class TS3Client extends EventEmitter {
|
||||
private identity: TS3Identity;
|
||||
private clientId = 0;
|
||||
private keepAliveInterval: ReturnType<typeof setInterval> | null = null;
|
||||
private logger: pino.Logger;
|
||||
private logger: Logger;
|
||||
|
||||
constructor(private options: TS3ClientOptions, logger: pino.Logger) {
|
||||
constructor(private options: TS3ClientOptions, logger: Logger) {
|
||||
super();
|
||||
this.logger = logger;
|
||||
|
||||
|
||||
Reference in new issue
Block a user