Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
refactor: use node protocol (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Oct 27, 2021
1 parent f1869a9 commit 0ff4d17
Show file tree
Hide file tree
Showing 20 changed files with 1,001 additions and 1,685 deletions.
2 changes: 1 addition & 1 deletion examples/music-bot/src/music/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
VoiceConnectionStatus,
} from '@discordjs/voice';
import { Track } from './track';
import { promisify } from 'util';
import { promisify } from 'node:util';

const wait = promisify(setTimeout);

Expand Down
4 changes: 2 additions & 2 deletions examples/recorder/src/createListeningStream.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { EndBehaviorType, VoiceReceiver } from '@discordjs/voice';
import { User } from 'discord.js';
import { createWriteStream } from 'fs';
import { createWriteStream } from 'node:fs';
import { opus } from 'prism-media';
import { pipeline } from 'stream';
import { pipeline } from 'node:stream';

function getDisplayName(userId: string, user?: User) {
return user ? `${user.username}_${user.discriminator}` : userId;
Expand Down
Loading

0 comments on commit 0ff4d17

Please sign in to comment.