Make afk optional in ActivitySchema

This commit is contained in:
Madeline 2022-10-01 00:51:35 +10:00
parent 95e7238e8f
commit 547a57055f
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -1,7 +1,7 @@
import { Activity, Status } from "@fosscord/util"; import { Activity, Status } from "@fosscord/util";
export const ActivitySchema = { export const ActivitySchema = {
afk: Boolean, $afk: Boolean,
status: String, status: String,
$activities: [ $activities: [
{ {
@ -54,7 +54,7 @@ export const ActivitySchema = {
}; };
export interface ActivitySchema { export interface ActivitySchema {
afk: boolean; afk?: boolean;
status: Status; status: Status;
activities?: Activity[]; activities?: Activity[];
since?: number; // unix time (in milliseconds) of when the client went idle, or null if the client is not idle since?: number; // unix time (in milliseconds) of when the client went idle, or null if the client is not idle