From 856ec34a04a46bec94c5a3b14616b426eb850d0a Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Mon, 23 Dec 2024 21:55:54 +0000 Subject: [PATCH] fix: discriminator missing from friend request call --- src/classes/User.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/User.ts b/src/classes/User.ts index 4324b7d7..072e8d52 100644 --- a/src/classes/User.ts +++ b/src/classes/User.ts @@ -276,7 +276,7 @@ export class User { */ async addFriend() { const user = await this.#collection.client.api.post(`/users/friend`, { - username: this.username, + username: this.username + "#" + this.discriminator, }); return this.#collection.getOrCreate(user._id, user);