Compare commits

..

No commits in common. "9dcd27c45f3ba7ffae76f185d8a2c4b1c95be34b" and "20ecfb3e8430e3d090c82c4b4b9433689dded831" have entirely different histories.

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,6 +85,5 @@ 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;
}