【问题标题】:Discord API only returns one memberDiscord API 只返回一个成员
【发布时间】:2021-01-22 15:04:16
【问题描述】:

如果我输入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}]

你知道如何获取所有成员吗?

提前致谢。

【问题讨论】:

    标签: api discord


    【解决方案1】:

    尝试通过在终端中输入以下内容来降级 discord.py:

    python3 -m pip install -U "discord.py>=1.4,<1.5"
    

    来源:https://discordpy.readthedocs.io/en/latest/intents.html

    【讨论】:

    • 很高兴能帮上忙!
    猜你喜欢
    • 2021-01-27
    • 2021-07-05
    • 2021-01-20
    • 2021-08-11
    • 2021-02-15
    • 2021-12-09
    • 2021-02-07
    • 2021-02-15
    • 1970-01-01
    相关资源
    最近更新 更多