mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
Move ShardingManager#message event to Shard#message
This commit is contained in:
parent
26b28813a8
commit
b5459a96fa
1 changed files with 3 additions and 4 deletions
|
|
@ -270,12 +270,11 @@ class Shard extends EventEmitter {
|
|||
}
|
||||
|
||||
/**
|
||||
* Emitted upon recieving a message from a shard.
|
||||
* @event ShardingManager#message
|
||||
* @param {Shard} shard Shard that sent the message
|
||||
* Emitted upon recieving a message from the child process.
|
||||
* @event Shard#message
|
||||
* @param {*} message Message that was received
|
||||
*/
|
||||
this.manager.emit('message', this, message);
|
||||
this.emit('message', message);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue