Compare commits
No commits in common. "9dcd27c45f3ba7ffae76f185d8a2c4b1c95be34b" and "20ecfb3e8430e3d090c82c4b4b9433689dded831" have entirely different histories.
9dcd27c45f
...
20ecfb3e84
@ -44,7 +44,7 @@ async function updateUserStatuses() {
|
|||||||
} else {
|
} else {
|
||||||
let ch = await client.channels.resolve(config.vrchat_status_category).createChannel(`┗ ${await getWorldNameForId(user.worldId)}`, {type: "GUILD_VOICE", position: belowChannel.position});
|
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?
|
//position option doesn't work?
|
||||||
//await ch.setPosition(channel.position);
|
await ch.setPosition(channel.position);
|
||||||
}
|
}
|
||||||
} else if (belowChannel?.name.startsWith('┗')) {
|
} else if (belowChannel?.name.startsWith('┗')) {
|
||||||
await belowChannel.delete();
|
await belowChannel.delete();
|
||||||
@ -85,6 +85,5 @@ client.on("interactionCreate", async i => {
|
|||||||
|
|
||||||
var worldnamecache = {};
|
var worldnamecache = {};
|
||||||
async function getWorldNameForId(worldId) {
|
async function getWorldNameForId(worldId) {
|
||||||
if (worldId == "private") return "Private World";
|
|
||||||
return worldnamecache[worldId] = worldnamecache[worldId] || (await worldsApi.getWorld(worldId)).data.name;
|
return worldnamecache[worldId] = worldnamecache[worldId] || (await worldsApi.getWorld(worldId)).data.name;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user