Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d9a1b9b99c | |||
| 6fe26e7837 | |||
| afc2b10a86 |
@@ -42,11 +42,12 @@ async function updateUserStatuses() {
|
||||
await channel.setName(nn);
|
||||
}
|
||||
|
||||
let belowChannel = client.channels.resolve(config.vrchat_status_category).children.find(x => x.position = channel.position + 1);
|
||||
console.debug(channel.name, channel.position, belowChannel.name, belowChannel.position, belowChannel.id);
|
||||
continue;
|
||||
|
||||
let belowChannel = client.channels.resolve(config.vrchat_status_category).children.find(x => x.position == channel.position + 1);
|
||||
if (user.worldId && user.worldId != "offline") {
|
||||
let bcn = `┗ ${await getWorldNameForId(user.worldId)}`;
|
||||
if (belowChannel && belowChannel.name.startsWith('┗') && belowChannel.name != bcn) {
|
||||
if (belowChannel && belowChannel.name.startsWith('┗') && belowChannel.name != bcn) { //todo debug
|
||||
await belowChannel.setName(bcn);
|
||||
} else {
|
||||
let ch = await client.channels.resolve(config.vrchat_status_category).createChannel(`┗ ${await getWorldNameForId(user.worldId)}`, {type: "GUILD_VOICE", /*position: belowChannel.position*/});
|
||||
|
||||
Reference in New Issue
Block a user