Clean up schemas some more
3 files changed, 2 insertions, 10 deletions
diff --git a/src/schemas/uncategorised/MessageCreateSchema.ts b/src/schemas/uncategorised/MessageCreateSchema.ts
index b9c8119e..f1313291 100644
--- a/src/schemas/uncategorised/MessageCreateSchema.ts
+++ b/src/schemas/uncategorised/MessageCreateSchema.ts
@@ -57,10 +57,7 @@ export interface MessageCreateSchema {
} | null;
payload_json?: string;
file?: { filename: string };
- /**
- TODO: we should create an interface for attachments
- TODO: OpenWAAO<-->attachment-style metadata conversion
- **/
+ // TODO: we should create an interface for attachments
attachments?: (MessageCreateAttachment | MessageCreateCloudAttachment)[];
sticker_ids?: string[] | null; // null check: fixes Discord-Go
components?: ActionRowComponent[] | null; // null check: fixes Discord-Go
diff --git a/src/schemas/uncategorised/WebhookExecuteSchema.ts b/src/schemas/uncategorised/WebhookExecuteSchema.ts
index 2d0fdbd4..147a2d1a 100644
--- a/src/schemas/uncategorised/WebhookExecuteSchema.ts
+++ b/src/schemas/uncategorised/WebhookExecuteSchema.ts
@@ -35,10 +35,7 @@ export interface WebhookExecuteSchema {
components?: any[];
file?: { filename: string };
payload_json?: string;
- /**
- TODO: we should create an interface for attachments
- TODO: OpenWAAO<-->attachment-style metadata conversion
- **/
+ // TODO: we should create an interface for attachments
attachments?: MessageCreateAttachment[];
flags?: number;
thread_name?: string;
diff --git a/src/util/entities/Session.ts b/src/util/entities/Session.ts
index e6ada0d9..a5cdeb77 100644
--- a/src/util/entities/Session.ts
+++ b/src/util/entities/Session.ts
@@ -24,8 +24,6 @@ import { Activity, ClientStatus, GatewaySession, GatewaySessionClientInfo, Statu
import { randomUpperString } from "@spacebar/api";
import { DateBuilder, IpDataClient, TimeSpan } from "../util";
-//TODO we need to remove all sessions on server start because if the server crashes without closing websockets it won't delete them
-
@Entity({
name: "sessions",
})
|