[breaking] fix typos

This commit is contained in:
TomatoCake 2024-07-01 20:31:47 +02:00
parent 8fe0c9f46b
commit 611e58090b
15 changed files with 113 additions and 115 deletions

View file

@ -423,7 +423,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();
@ -489,8 +489,8 @@ class Guild{
build.push(thing)
}else{
console.log("fail");
if(thing.parrent){
thing.parrent.delChannel(JSON);
if(thing.parent){
thing.parent.delChannel(JSON);
}
}
}
@ -500,7 +500,7 @@ class Guild{
}
createChannel(name:string,type:number){
fetch(this.info.api.toString()+"/guilds/"+this.id+"/channels",{
method:"Post",
method:"POST",
headers:this.headers,
body:JSON.stringify({name: name, type: type})
})