fix JS files

This commit is contained in:
MathMan05 2024-07-01 13:52:17 -05:00
parent 3c0c7e6f4f
commit c2a77af323
12 changed files with 130 additions and 116 deletions

View file

@ -417,7 +417,7 @@ class Guild {
this.channelids[JSON.id] = thischannel;
this.channels.push(thischannel);
thischannel.resolveparent(this);
if (!thischannel.parrent) {
if (!thischannel.parent) {
this.headchannels.push(thischannel);
}
this.calculateReorder();
@ -479,8 +479,8 @@ class Guild {
build.push(thing)
}else{
console.log("fail");
if(thing.parrent){
thing.parrent.delChannel(JSON);
if(thing.parent){
thing.parent.delChannel(JSON);
}
}
}
@ -490,7 +490,7 @@ class Guild {
}
createChannel(name, type) {
fetch(this.info.api.toString() + "/guilds/" + this.id + "/channels", {
method: "Post",
method: "POST",
headers: this.headers,
body: JSON.stringify({ name: name, type: type })
});