diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-01 00:51:35 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-01 00:55:11 +1000 |
commit | 547a57055fc0df782d7afc726b1413c987e66815 (patch) | |
tree | 0eb7245e503e6a5ffbee56e682333c48f05faad6 /src/util | |
parent | Split MANAGE_GUILDS right into MANAGE_GUILDS for instance-wide control and SE... (diff) | |
download | server-547a57055fc0df782d7afc726b1413c987e66815.tar.xz |
Make `afk` optional in ActivitySchema
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/schemas/ActivitySchema.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/schemas/ActivitySchema.ts b/src/util/schemas/ActivitySchema.ts index 5a3d205b..e4501bd7 100644 --- a/src/util/schemas/ActivitySchema.ts +++ b/src/util/schemas/ActivitySchema.ts @@ -1,7 +1,7 @@ import { Activity, Status } from "@fosscord/util"; export const ActivitySchema = { - afk: Boolean, + $afk: Boolean, status: String, $activities: [ { @@ -54,7 +54,7 @@ export const ActivitySchema = { }; export interface ActivitySchema { - afk: boolean; + afk?: boolean; status: Status; activities?: Activity[]; since?: number; // unix time (in milliseconds) of when the client went idle, or null if the client is not idle |