ro-py/ro.py

get_friend_count() is not working with me.

Robinbot1 opened this issue · 0 comments

I am trying to make a code that gets the player username and friends count, I got the player username but the friends count are showing in the message like this <coroutine object BaseUser.get_friend_count at 0x0000020F355B0790>

The code:
@client.command() @commands.guild_only() async def find(ctx, *, user_id): user = await RobloxClient.get_user(user_id) await ctx.channel.send("**The Account Name is {}**".format(user.name)) friends = user.get_friend_count() await ctx.send("**And {}'s has {} Friends**".format(user.name,friends))