src/includes/classes/Core/Utils/Uuid64.php
public function validateShardId(int $shard_id): int
    {
        if ($shard_id < 0 || $shard_id > 65535) {
            throw $this->c::issue('Shard ID out of range.');
        }
        return $shard_id;
    }
public function validateShardId(int $shard_id): int
    {
        if ($shard_id < 0 || $shard_id > 65535) {
            throw $this->c::issue('Shard ID out of range.');
        }
        return $shard_id;
    }
Validate shard ID.

@since 150424 Initial release.

@param int $shard_id Input shard ID (16 bits unsigned max `65535`).

@return int Validated shard ID (16 bits unsigned max `65535`).