Compare commits

...

2 Commits

Author SHA1 Message Date
Lamp 9dcd27c45f wat 2022-04-01 21:04:39 -07:00
Lamp e882ee7e57 fix private 2022-04-01 21:04:12 -07:00
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,7 @@ async function updateUserStatuses() {
} else {
let ch = await client.channels.resolve(config.vrchat_status_category).createChannel(`${await getWorldNameForId(user.worldId)}`, {type: "GUILD_VOICE", position: belowChannel.position});
//position option doesn't work?
await ch.setPosition(channel.position);
//await ch.setPosition(channel.position);
}
} else if (belowChannel?.name.startsWith('┗')) {
await belowChannel.delete();
@ -85,5 +85,6 @@ client.on("interactionCreate", async i => {
var worldnamecache = {};
async function getWorldNameForId(worldId) {
if (worldId == "private") return "Private World";
return worldnamecache[worldId] = worldnamecache[worldId] || (await worldsApi.getWorld(worldId)).data.name;
}