diff --git a/src/api/acts/rooms.ts b/src/api/acts/rooms.ts index 8579f51..ff7fcd5 100644 --- a/src/api/acts/rooms.ts +++ b/src/api/acts/rooms.ts @@ -650,7 +650,7 @@ export const setVisibility: Act = { func: async (client, data, aws) => { if (!checkSelfTag(data.server)) { if (client.state != STATE.client) return void aws("error", "right"); - let resp = await client.pass(data.server, "roomSettings", data); + let resp = await client.pass(data.server, "setVisibility", data); aws(resp.state, resp.data); return; } @@ -675,7 +675,7 @@ export const setRoomRight: Act = { func: async (client, data, aws) => { if (!checkSelfTag(data.server)) { if (client.state != STATE.client) return void aws("error", "right"); - let resp = await client.pass(data.server, "roomSettings", data); + let resp = await client.pass(data.server, "setRoomRight", data); aws(resp.state, resp.data); return; } @@ -702,7 +702,7 @@ export const changeRoomMeta: Act = { func: async (client: Client, data: any, aws: (code: string, data: any) => void) => { if (!checkSelfTag(data.server)) { if (client.state != STATE.client) return void aws("error", "right"); - let resp = await client.pass(data.server, "roomMeta", data); + let resp = await client.pass(data.server, "changeRoomMeta", data); aws(resp.state, resp.data); return; }