ShardCacheViewImpl, ShardCacheViewImpl.UnifiedShardCacheViewImplpublic interface ShardCacheView extends CacheView<JDA>
CacheView.SimpleCacheView<T>| Modifier and Type | Method | Description |
|---|---|---|
JDA |
getElementById(int id) |
Retrieves the JDA instance represented by the provided shard ID.
|
default JDA |
getElementById(java.lang.String id) |
Retrieves the JDA instance represented by the provided shard ID
or
null if none of the connected shards match the provided id. |
asList, asSet, collect, getElementsByName, getElementsByName, isEmpty, parallelStream, size, streamJDA getElementById(int id)
id - The ID of the entitydefault JDA getElementById(java.lang.String id)
null if none of the connected shards match the provided id.id - The ID of the shardjava.lang.NumberFormatException - If the provided String is null or
cannot be resolved to an unsigned int id