【问题标题】:discord api on guild info Unauthorized公会信息上的不和谐 api 未经授权
【发布时间】:2020-12-01 05:01:23
【问题描述】:

在邮递员中 我的网址是https://discordapp.com/api/v6/guilds/417208237142573056

我从https://discordapp.com/api/v6/users/@me/guilds 获得了公会ID ->列出所有公会ID

我的标题设置完美,因为我得到了/users/@me/guilds的结果

还是authorization : Bearer n*****************a7

它给了我{"message": "401: Unauthorized", "code": 0}

我得到了我的令牌 https://discord.com/api/oauth2/authorize?client_id=5*******4&redirect_uri=http********8000%2Fcallback.html&response_type=token&scope=identify%20guilds -> 也尝试了 resonse 类型 code

范围是 identifyguilds

那我哪里做错了?

【问题讨论】:

    标签: javascript html api discord discord.js


    【解决方案1】:

    此时您无法获得该信息,或者简单地说,此时它在 oth2 api 中不可用

    【讨论】:

      猜你喜欢
      • 2021-10-26
      • 1970-01-01
      • 1970-01-01
      • 2018-09-12
      • 2014-03-10
      • 1970-01-01
      • 1970-01-01
      • 2019-08-13
      • 2013-08-22
      相关资源
      最近更新 更多