mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
Fix PacketHandler runtime error (EventEmitter not imported)
This commit is contained in:
parent
cb161a8a40
commit
c6c9c0918a
1 changed files with 3 additions and 1 deletions
|
|
@ -1,10 +1,12 @@
|
|||
const nonce = Buffer.alloc(24);
|
||||
const secretbox = require('../util/Secretbox');
|
||||
const EventEmitter = require('events');
|
||||
|
||||
class Readable extends require('stream').Readable { _read() {} } // eslint-disable-line no-empty-function
|
||||
|
||||
class PacketHandler {
|
||||
class PacketHandler extends EventEmitter {
|
||||
constructor(receiver) {
|
||||
super();
|
||||
this.receiver = receiver;
|
||||
this.streams = new Map();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue