Skip to content

Commit

Permalink
fix: discriminator missing from friend request call
Browse files Browse the repository at this point in the history
  • Loading branch information
insertish committed Dec 23, 2024
1 parent 32f2cd4 commit 856ec34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 856ec34

Please sign in to comment.