From 3652acaf2830aaa7fc86a41b5fd910576322896b Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Tue, 13 Aug 2024 16:09:59 -0500 Subject: [PATCH] fix bug --- .dist/user.js | 2 +- webpage/user.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.dist/user.js b/.dist/user.js index 04a77a6..ab9a848 100644 --- a/.dist/user.js +++ b/.dist/user.js @@ -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 }); }); diff --git a/webpage/user.ts b/webpage/user.ts index 6d52e7e..6bf7e1e 100644 --- a/webpage/user.ts +++ b/webpage/user.ts @@ -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 }); })