fix
This commit is contained in:
parent
c9c45d17e7
commit
f602638aae
@ -29,7 +29,7 @@ async function updateUserStatuses() {
|
||||
try {
|
||||
channel = client.channels.resolve(channel);
|
||||
let user = (await usersApi.getUser(userId)).data;
|
||||
let status_icon = user.state == "online" ? status2icon(user.status) : '⚫';
|
||||
let status_icon = user.state == "online" ? status2icon[user.status] : '⚫';
|
||||
let nn = `${status_icon} ${user.displayName}`;
|
||||
if (nn != channel.name)
|
||||
await channel.setName(nn);
|
||||
@ -50,7 +50,7 @@ client.on("interactionCreate", async i => {
|
||||
await i.deferReply();
|
||||
let u = i.options.getString("user");
|
||||
let user = (await usersApi[u.startsWith("usr_") ? 'getUser' : 'getUserByName'](u)).data;
|
||||
let status_icon = user.state == "online" ? status2icon(user.status) : '⚫';
|
||||
let status_icon = user.state == "online" ? status2icon[user.status] : '⚫';
|
||||
let nn = `${status_icon} ${user.displayName}`;
|
||||
let channel = await client.channels.resolve(config.vrchat_status_category).createChannel(nn, {type: "GUILD_VOICE"});
|
||||
vrcul.push({channel: channel.id, userId: user.id});
|
||||
|
Loading…
x
Reference in New Issue
Block a user