如何让我的机器人在其状态中显示它所在服务器的成员?

时间:2021-03-24 20:11:15

标签: python discord.py

我试过了,但它只显示观看 1 个会员我做错了什么?

代码:

await client.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name=f"{len(set(client.users))} Members"))
        await asyncio.sleep(3)

await client.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name=f"{len(set(client.users))} Members")) 等待 asyncio.sleep(3)

0 个答案:

没有答案