mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-19 17:13:31 -04:00
fix: discriminator missing from friend request call
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user