Discord bot which records users in voice channel and then speaks in their voice randomly. Will also join the voice channel by itself, say something and leave.
Currently there are errors like:
node_modules/@discordjs/voice/dist/index.d.ts:713:30 - error TS2315: Type 'Buffer' is not generic.
713 encrypt(packet: Buffer): Buffer<ArrayBufferLike>;
~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@discordjs/voice/dist/index.d.ts:721:46 - error TS2315: Type 'Buffer' is not generic.
721 decrypt(packet: Buffer, userId: string): Buffer<ArrayBufferLike> | null;
~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@discordjs/voice/dist/index.d.ts:1173:45 - error TS2315: Type 'Buffer' is not generic.
1173 prepareAudioPacket(opusPacket: Buffer): Buffer<ArrayBufferLike> | undefined;
~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@discordjs/voice/dist/index.d.ts:1732:41 - error TS2315: Type 'Buffer' is not generic.
1732 prepareAudioPacket(buffer: Buffer): Buffer<ArrayBufferLike> | undefined;When trying to build. But it still builds the bot and able to start it normally.