default status option
This commit is contained in:
parent
815ae686f3
commit
05fb6a3437
1 changed files with 16 additions and 12 deletions
|
@ -40,7 +40,9 @@ function updatePresence() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
comcord.client.editStatus(comcord.state.afk ? "idle" : "online", [
|
comcord.client.editStatus(
|
||||||
|
comcord.state.afk ? "idle" : comcord.config.defaultStatus ?? "online",
|
||||||
|
[
|
||||||
{
|
{
|
||||||
name: "comcord",
|
name: "comcord",
|
||||||
type: 0,
|
type: 0,
|
||||||
|
@ -49,7 +51,8 @@ function updatePresence() {
|
||||||
start: comcord.state.startTime,
|
start: comcord.state.startTime,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]);
|
]
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
const activity = {
|
const activity = {
|
||||||
application_id: CLIENT_ID,
|
application_id: CLIENT_ID,
|
||||||
|
@ -76,9 +79,10 @@ function updatePresence() {
|
||||||
activity.state = "AFK";
|
activity.state = "AFK";
|
||||||
}
|
}
|
||||||
|
|
||||||
comcord.client.editStatus(comcord.state.afk ? "idle" : "online", [
|
comcord.client.editStatus(
|
||||||
activity,
|
comcord.state.afk ? "idle" : comcord.config.defaultStatus ?? "online",
|
||||||
]);
|
[activity]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue