fix notifications
This commit is contained in:
@@ -128,15 +128,12 @@ class Guild {
|
|||||||
noti
|
noti
|
||||||
],
|
],
|
||||||
["button", "", "submit", _ => {
|
["button", "", "submit", _ => {
|
||||||
fetch(this.info.api + "/users/@me/guilds/settings", {
|
//
|
||||||
|
fetch(this.info.api + `/users/@me/guilds/${this.id}/settings/`, {
|
||||||
method: "PATCH",
|
method: "PATCH",
|
||||||
headers: this.headers,
|
headers: this.headers,
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
"guilds": {
|
"message_notifications": noti
|
||||||
[this.id]: {
|
|
||||||
"message_notifications": noti
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
this.message_notifications = noti;
|
this.message_notifications = noti;
|
||||||
|
@@ -139,15 +139,12 @@ class Guild{
|
|||||||
noti
|
noti
|
||||||
],
|
],
|
||||||
["button","","submit",_=>{
|
["button","","submit",_=>{
|
||||||
fetch(this.info.api+"/users/@me/guilds/settings",{
|
//
|
||||||
|
fetch(this.info.api+`/users/@me/guilds/${this.id}/settings/`,{
|
||||||
method:"PATCH",
|
method:"PATCH",
|
||||||
headers:this.headers,
|
headers:this.headers,
|
||||||
body:JSON.stringify({
|
body:JSON.stringify({
|
||||||
"guilds":{
|
"message_notifications": noti
|
||||||
[this.id]:{
|
|
||||||
"message_notifications": noti
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
this.message_notifications=noti;
|
this.message_notifications=noti;
|
||||||
|
Reference in New Issue
Block a user