[breaking] fix typos
This commit is contained in:
@@ -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})
|
||||
})
|
||||
|
Reference in New Issue
Block a user