mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
Add more @readonly and clean up some stuff
This commit is contained in:
@@ -16,6 +16,7 @@ class ShardClientUtil {
|
||||
/**
|
||||
* ID of this shard
|
||||
* @type {number}
|
||||
* @readonly
|
||||
*/
|
||||
get id() {
|
||||
return this.client.options.shardId;
|
||||
@@ -24,6 +25,7 @@ class ShardClientUtil {
|
||||
/**
|
||||
* Total number of shards
|
||||
* @type {number}
|
||||
* @readonly
|
||||
*/
|
||||
get count() {
|
||||
return this.client.options.shardCount;
|
||||
|
||||
Reference in New Issue
Block a user