mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
Document and change launch event params
This commit is contained in:
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user