尝试从 Discord OAuth 请求 dm_channels.messages.write 时出现 invalid_scope

问题描述 投票:0回答:1

我正在尝试更新我的 Discord OAuth 流程请求的范围,我正在尝试添加

dm_channels.messages.write
,这是 Discord 开发人员门户为我生成的 URL(一些信息已编辑):

https://discord.com/oauth2/authorize
  ?client_id=<CLIENT_ID>
  &response_type=code
  &redirect_uri=<REDIRECT_URI>
  &scope=identify+email+guilds.members.read+guilds.join+guilds+dm_channels.messages.write

由于某种原因,在我使用此链接进行身份验证后,重定向 URL 指向:

?error=invalid_scope
&error_description=The+requested+scope+is+invalid%2C+unknown%2C+or+malformed.

任何人都可以帮助我理解为什么这不起作用吗?该流程无需列表中的

dm_channels.messages.write
范围即可运行。

discord
1个回答
0
投票

某些范围需要discord 批准。看来你必须联系不和谐支持并请求批准。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.