From c2c0e08b036fa0bfa69c46afc147b24ba18d6736 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Sat, 7 Sep 2024 19:40:02 -0500 Subject: [PATCH] throw error if something weird happens --- .dist/direct.js | 3 +++ webpage/direct.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.dist/direct.js b/.dist/direct.js index 9296048..5b621be 100644 --- a/.dist/direct.js +++ b/.dist/direct.js @@ -7,6 +7,9 @@ import { SnowFlake } from "./snowflake.js"; import { Contextmenu } from "./contextmenu.js"; class Direct extends Guild { channelids; + getUnixTime() { + throw new Error("Do not call this for Direct, it does not make sense"); + } constructor(json, owner) { super(-1, owner, null); this.message_notifications = 0; diff --git a/webpage/direct.ts b/webpage/direct.ts index eb8dd3f..029826b 100644 --- a/webpage/direct.ts +++ b/webpage/direct.ts @@ -10,6 +10,9 @@ import { Contextmenu } from "./contextmenu.js"; class Direct extends Guild{ channelids:{[key:string]:Group}; + getUnixTime(): number { + throw new Error("Do not call this for Direct, it does not make sense"); + } constructor(json:dirrectjson[],owner:Localuser){ super(-1,owner,null); this.message_notifications=0;