Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d9a1b9b99c | |||
| 6fe26e7837 | |||
| afc2b10a86 | |||
| 3369bd521d | |||
| d52aff9936 |
@@ -42,13 +42,16 @@ async function updateUserStatuses() {
|
|||||||
await channel.setName(nn);
|
await channel.setName(nn);
|
||||||
}
|
}
|
||||||
|
|
||||||
let belowChannel = client.channels.resolve(config.vrchat_status_category).children.find(x => x.position = channel.position + 1);
|
continue;
|
||||||
|
|
||||||
|
let belowChannel = client.channels.resolve(config.vrchat_status_category).children.find(x => x.position == channel.position + 1);
|
||||||
if (user.worldId && user.worldId != "offline") {
|
if (user.worldId && user.worldId != "offline") {
|
||||||
let bcn = `┗ ${await getWorldNameForId(user.worldId)}`;
|
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);
|
await belowChannel.setName(bcn);
|
||||||
} 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 is erratic
|
||||||
await ch.setPosition(channel.position + 1);
|
await ch.setPosition(channel.position + 1);
|
||||||
}
|
}
|
||||||
} else if (belowChannel?.name.startsWith('┗')) {
|
} else if (belowChannel?.name.startsWith('┗')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user