Skip to content
Void Monster Docs

Type to search guides and API reference.

    Ethereal Plane/Developer docs

    API

    Legacy documentation

    Ethereal Plane provides a simple API that can be accessed through the module’s API property.

    The Ethereal Plane API can be accessed using:

    game.modules.get('ethereal-plane').api

    The Ethereal Plane API provides the following methods:

    Sends a message to the connected chat platforms.

    Parameters:

    • message (string): The message to send to chat

    Example:

    // Send a message to chat
    game.modules.get('ethereal-plane').api.sendMessageToChat("Hello from Foundry VTT!");

    Note: This method will only work if the “Allow API” setting is enabled in the module settings.

    The main API class that provides methods for interacting with the Ethereal Plane module.

    export class EtherealPlaneAPI {
    // Methods
    sendMessageToChat(message: string);
    }