bug fixes
This commit is contained in:
@@ -565,7 +565,7 @@ class Channel{
|
||||
body: JSON.stringify({
|
||||
name,
|
||||
type,
|
||||
parent_id: this.snowflake,
|
||||
parent_id: this.id,
|
||||
permission_overwrites: [],
|
||||
})
|
||||
});
|
||||
|
@@ -529,7 +529,7 @@ class Guild{
|
||||
this.printServers();
|
||||
}
|
||||
createChannel(name:string,type:number){
|
||||
fetch(this.info.api+"/guilds/"+this.snowflake+"/channels",{
|
||||
fetch(this.info.api+"/guilds/"+this.id+"/channels",{
|
||||
method: "POST",
|
||||
headers: this.headers,
|
||||
body: JSON.stringify({name, type})
|
||||
|
Reference in New Issue
Block a user