Getting number of members and servers a bot is serving

前端 未结 2 1666
耶瑟儿~
耶瑟儿~ 2021-01-26 12:10

So I went through the discord.js guide, and found that client.guilds.size and client.users.size is for finding no of users and servers a bot is on. But

2条回答
  •  一个人的身影
    2021-01-26 12:42

    Try client.guilds.cache.size and client.users.cache.size. This changed in discord.js v12.

    client.users has been changed from a Collection to a Manager.

    client.guilds has been changed from a Collection to a Manager.

提交回复
热议问题