feat: remove Receiver#createVideoStream

nah
This commit is contained in:
Elysia
2024-09-16 22:01:58 +07:00
parent 99e348fe2b
commit f4a4fb6416
3 changed files with 4 additions and 58 deletions

4
typings/index.d.ts vendored
View File

@@ -1076,8 +1076,6 @@ export class StreamConnection extends VoiceConnection {
export class VoiceReceiver extends EventEmitter {
constructor(connection: VoiceConnection);
public createStream(user: UserResolvable, options?: { mode?: 'opus' | 'pcm'; end?: 'silence' | 'manual' }): Readable;
/** @deprecated Only recorded VP8 stream */
public createVideoStream(user: UserResolvable): IvfJoinner;
public on(event: 'debug', listener: (error: Error | string) => void): this;
public on(event: string, listener: (...args: any[]) => void): this;
@@ -1086,12 +1084,14 @@ export class VoiceReceiver extends EventEmitter {
public once(event: string, listener: (...args: any[]) => void): this;
}
/*
export class IvfJoinner {
constructor(codec: 'VP8');
public stream: Readable;
public stop(): void;
public createFinalFile(read: Readable, write: Writable): void;
}
*/
export { Collection } from '@discordjs/collection';