discordjs / discord.js

A powerful JavaScript library for interacting with the Discord API
https://discord.js.org
Apache License 2.0
25.37k stars 3.97k forks source link

RelationshipsManager object #7242

Closed ankitshubham97 closed 2 years ago

ankitshubham97 commented 2 years ago

Which package is the feature request for?

discord.js

Feature

It seems that there is no way to get a user's friends' list. In versions prior to v12, there used to be a friends member on ClientUser object. But in v12, it was removed (https://v12.discordjs.guide/additional-info/changes-in-v12.html#clientuser).

  1. Is there a way to get this using v12?
  2. If no, in discord developer api, there is something called "Relationships" and it looks like it is what I need. If this is not already implemented in v12 of discord.js, can it be taken up with priority?

Ideal solution or implementation

I need an api to fetch a user's friends' list.

Alternative solutions or implementations

No response

Other context

2316

almostSouji commented 2 years ago

Bots cannot have friends and applications running on a user token (which would have friends) are against Discord terms of service and not supported by discord.js