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

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

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

Base Place class for Open Cloud.

Constructors

new
BasePlace(
id: number,
parentUniverseId?: number,
)

Construct a new Base Place with its place ID and parent universe ID.

Properties

private
readonly
_client: OpenCloudClient

The client to use services from.

readonly
id: number

The ID of the place.

readonly
parentUniverseId: number | undefined

The parent universe ID of the place.

Methods

updateContents(data: Uint8Array, placeVersionType?: UpdatePlaceDataVersionType): Promise<number>

Update the contents for a place. This will create a new Place version, and the version will be Published if placeVersionType is Published.