Update refrence

Class is now itself an emitter and no longer has an emitter attrabute
This commit is contained in:
SeanWalsh95 2020-10-20 14:45:23 -04:00
parent e30bacbfe0
commit 13350554bc

View File

@ -49,7 +49,7 @@ export default class Rcon extends EventEmiiter {
this.client.on('error', (err) => {
this.verbose(`Socket Error: ${err.message}`);
this.emitter.emit('RCON_ERROR', err);
this.emit('RCON_ERROR', err);
});
this.client.on('close', async (hadError) => {