small patches
This commit is contained in:
parent
66a13c3407
commit
c890856ce3
7 changed files with 8 additions and 8 deletions
|
@ -198,7 +198,7 @@ class Channel extends SnowFlake {
|
|||
return false;
|
||||
}), this.readbottom.bind(this));
|
||||
}
|
||||
constructor(json, owner, id = json === -1 ? undefined : json.id) {
|
||||
constructor(json, owner, id = json === -1 ? "" : json.id) {
|
||||
super(id);
|
||||
if (json === -1) {
|
||||
return;
|
||||
|
|
|
@ -86,7 +86,7 @@ class Group extends Channel {
|
|||
this.user = this.localuser.user;
|
||||
}
|
||||
this.name ??= this.localuser.user.username;
|
||||
this.parent_id = null;
|
||||
this.parent_id = undefined;
|
||||
this.parent = null;
|
||||
this.children = [];
|
||||
this.guild_id = "@me";
|
||||
|
|
|
@ -70,7 +70,7 @@ class Guild extends SnowFlake {
|
|||
settings.show();
|
||||
}
|
||||
constructor(json, owner, member) {
|
||||
if (json === -1) {
|
||||
if (json === -1 || member === null) {
|
||||
super("@me");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue