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