fix notifications
This commit is contained in:
parent
eaa265f2ea
commit
cc2c246020
2 changed files with 6 additions and 12 deletions
|
@ -128,15 +128,12 @@ class Guild {
|
|||
noti
|
||||
],
|
||||
["button", "", "submit", _ => {
|
||||
fetch(this.info.api + "/users/@me/guilds/settings", {
|
||||
//
|
||||
fetch(this.info.api + `/users/@me/guilds/${this.id}/settings/`, {
|
||||
method: "PATCH",
|
||||
headers: this.headers,
|
||||
body: JSON.stringify({
|
||||
"guilds": {
|
||||
[this.id]: {
|
||||
"message_notifications": noti
|
||||
}
|
||||
}
|
||||
"message_notifications": noti
|
||||
})
|
||||
});
|
||||
this.message_notifications = noti;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue