summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-01 00:51:35 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-01 00:55:11 +1000
commit6026b9b66cda325055ea2bfa78e0dfa67dcc21d7 (patch)
tree8cd29717bcf2ea71d086de18471a6f7887a6c7fc /src
parentSplit MANAGE_GUILDS right into MANAGE_GUILDS for instance-wide control and SE... (diff)
downloadserver-6026b9b66cda325055ea2bfa78e0dfa67dcc21d7.tar.xz
Make `afk` optional in ActivitySchema
Diffstat (limited to 'src')
-rw-r--r--src/util/schemas/ActivitySchema.ts4
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