bug fix
This commit is contained in:
@@ -429,7 +429,7 @@ class Channel {
|
|||||||
return div;
|
return div;
|
||||||
}
|
}
|
||||||
createChannel(name, type) {
|
createChannel(name, type) {
|
||||||
fetch(this.info.api.toString() + "/guilds/" + this.guild.snowflake + "/channels", {
|
fetch(this.info.api.toString() + "/guilds/" + this.guild.id + "/channels", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: this.headers,
|
headers: this.headers,
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
@@ -437,7 +437,7 @@ class Channel{
|
|||||||
return div;
|
return div;
|
||||||
}
|
}
|
||||||
createChannel(name:string,type:number){
|
createChannel(name:string,type:number){
|
||||||
fetch(this.info.api.toString()+"/guilds/"+this.guild.snowflake+"/channels",{
|
fetch(this.info.api.toString()+"/guilds/"+this.guild.id+"/channels",{
|
||||||
method:"POST",
|
method:"POST",
|
||||||
headers:this.headers,
|
headers:this.headers,
|
||||||
body:JSON.stringify({
|
body:JSON.stringify({
|
||||||
|
Reference in New Issue
Block a user