Add auto disconnect

This commit is contained in:
Max Isom 2020-03-16 20:14:15 -05:00
parent 32cb3ca4ae
commit ac21b5657b
5 changed files with 45 additions and 19 deletions

View file

@ -16,9 +16,9 @@ export enum STATUS {
export default class {
public status = STATUS.DISCONNECTED;
public voiceConnection: VoiceConnection | null = null;
private readonly queue: Queue;
private readonly cacheDir: string;
private voiceConnection: VoiceConnection | null = null;
private dispatcher: StreamDispatcher | null = null;
private playPositionInterval: NodeJS.Timeout | undefined;