mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 08:41:29 +00:00
Document and change launch event params
This commit is contained in:
parent
b795ed8109
commit
9d94fbfbcb
2 changed files with 7 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -53,7 +53,12 @@ class ShardingManager extends EventEmitter {
|
||||||
const id = this.shards.size;
|
const id = this.shards.size;
|
||||||
const shard = new Shard(this, id);
|
const shard = new Shard(this, id);
|
||||||
this.shards.set(id, shard);
|
this.shards.set(id, shard);
|
||||||
this.emit('launch', id, shard);
|
/**
|
||||||
|
* Emitted upon launching a shard
|
||||||
|
* @event ShardingManager#launch
|
||||||
|
* @param {Shard} shard Shard that was launched
|
||||||
|
*/
|
||||||
|
this.emit('launch', shard);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue