如果我输入curl --header "Authorization: Bot TOKEN" "https://discord.com/api/guilds/GUILD/members
,它将仅返回一个成员。返回:
[{"user": {"id": "213790766995210240", "username": "USERNAME", "avatar": "534d5eb58944314edcdf3e72dc57e564", "discriminator": "1385", "public_flags": 0}, "roles": ["722700978603687957", "722700978859540505", "727078437264556103", "753325209326584039", "753325723913289778"], "nick": "NICK", "premium_since": null, "joined_at": "2020-07-06T10:56:01.369000+00:00", "is_pending": false, "mute": false, "deaf": false}]
您知道如何获得所有成员吗?
谢谢。
答案 0 :(得分:1)
通过在终端中键入以下内容来降级discord.py:
python3 -m pip install -U "discord.py>=1.4,<1.5"