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

How to list Friends #2316

Closed Wreeper closed 6 years ago

Wreeper commented 6 years ago

How to list Friends with Discord.js in a non-bot account? I'm new to this domain.

purrplingcat commented 6 years ago

Hi,

in docs is property friends in class ClientUser

https://discord.js.org/#/docs/main/stable/class/ClientUser?scrollTo=friends

console.log(client.user.friends)
kyranet commented 6 years ago

That's reserved for user accounts, not bots.

The issue tracker is only for bug reports and enhancement suggestions. If you have a question, please ask it in the Discord server instead of opening an issue – you will get redirected there anyway.

ankitshubham97 commented 2 years ago

Hi,

in docs is property friends in class ClientUser

https://discord.js.org/#/docs/main/stable/class/ClientUser?scrollTo=friends

console.log(client.user.friends)

This is no longer available in v12. How can we list the friends now in v12?

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

Please do not necro-post on closed issues, if there are no new circumstances that warrant re-opening.