Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dynablox_opencloud/src/classes/opencloud/bases/BaseUniverse.ts>BaseUniverse

A Roblox OpenCloud API wrapper for Deno and NodeJS written in TypeScript.
Latest
class BaseUniverse
import { BaseUniverse } from "https://deno.land/x/dynablox_opencloud@v0.2.2/src/classes/opencloud/bases/BaseUniverse.ts";

Base Universe class for Open Cloud.

Constructors

new
BaseUniverse(client: OpenCloudClient, universeId: number)

Construct a new BaseUniverse

Properties

private
readonly
_client: OpenCloudClient

The client to use services from.

readonly
id: number

The ID of the universe.

Methods

getBasePlace(placeId: number): BasePlace

Get a sub base place within the universe.

getStandardDataStore(dataStoreName: string, scope?): StandardDataStore

Gets a standard DataStore by the name and scope.

listStandardDataStores(
prefix?: string,
limit?: number,
cursor?: string,
): ServicePage<OpenCloudClient["services"]["opencloud"]["DataStoreService"]["listDataStores"], StandardDataStoreKeyInfo[]>

Lists Standard datastores by prefix.

postMessage(topicName: string, data: unknown): Promise<void>

Post a message to a MessagingService topicName.