throw error if something weird happens
This commit is contained in:
parent
515a11f110
commit
c2c0e08b03
2 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue