public static class JDA.ShardInfo
extends java.lang.Object
Constructor | Description |
---|---|
ShardInfo(int shardId,
int shardTotal) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
int |
getShardId() |
Represents the id of the shard of the current instance.
|
java.lang.String |
getShardString() |
Provides a shortcut method for easily printing shard info.
|
int |
getShardTotal() |
The total amount of shards based on the value provided during JDA instance creation using
JDABuilder.useSharding(int, int) . |
java.lang.String |
toString() |
public int getShardId()
getShardTotal()
- 1).public int getShardTotal()
JDABuilder.useSharding(int, int)
.
public java.lang.String getShardString()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object