• Check out the relaunch of our general collection, with classic designs and new ones by our very own Pissog!

Approved Add Parent Room and SubRooms list into roominfo

Currently, there is an only way to get a parent room or subroom list is to send /parentroom or /subrooms.
In particular, /parentroom only displays the room title, not the roomid. It is not useful data for bots.

Code:
{
    id: string:
    roomid: string;
    title: string;
    type: string;
    visibility: string;
    modchat?: string;
    modjoin?: string;
    auth: { [key: string]: string[] };
    users: string[];
};
Change it like this:
Code:
{
    id: string:
    roomid: string;
    title: string;
    type: string;
    visibility: string;
    parentroom?: string; //only roomid here
    subrooms?: string[]; //only roomid, too
    modchat?: string;
    modjoin?: string;
    auth: { [key: string]: string[] };
    users: string[];
};
 
Last edited:
Back
Top