throw error if something weird happens
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user