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;