This commit is contained in:
MathMan05 2024-08-13 16:09:59 -05:00
parent 190f29c869
commit 3652acaf28
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ class User {
});
this.contextmenu.addbutton("Message user", function () {
fetch(this.info.api + "/users/@me/channels", { method: "POST",
body: JSON.stringify({ "recipients": [this.id.id] }),
body: JSON.stringify({ "recipients": [this.id] }),
headers: this.localuser.headers
});
});

View file

@ -54,7 +54,7 @@ class User{
this.contextmenu.addbutton("Message user",function(){
fetch(this.info.api+"/users/@me/channels",
{method:"POST",
body:JSON.stringify({"recipients":[this.id.id]}),
body:JSON.stringify({"recipients":[this.id]}),
headers: this.localuser.headers
});
})