Skip to content

Commit

Permalink
Check for rawWS listeners on main Client instance
Browse files Browse the repository at this point in the history
  • Loading branch information
abalabahaha committed Oct 20, 2017
1 parent 4164696 commit 92c3da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gateway/Shard.js
Expand Up @@ -1632,7 +1632,7 @@ class Shard extends EventEmitter {
}

onWSMessage(packet) {
if(this.listeners("rawWS").length > 0) {
if(this.listeners("rawWS").length > 0 || this.client.listeners("rawWS").length) {
/**
* Fired when the shard receives a websocket packet
* @event Client#rawWS
Expand Down

0 comments on commit 92c3da0

Please sign in to comment.