shard property

Shard shard

Returns this guilds shard

Implementation

Shard get shard {
  if (this.client is! Nyxx) {
    throw new UnsupportedError("Cannot use this property with NyxxRest");
  }

  return (client as Nyxx).shardManager.shards.firstWhere((_shard) => _shard.guilds.contains(this.id));
}