fix API bugs

This commit is contained in:
MathMan05 2024-08-11 17:49:57 -05:00
parent 1d705a6f63
commit 01be46d5e1
8 changed files with 42 additions and 42 deletions

View file

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