Why do i get bad request
When i use the following scopes
identify email guilds
it works perfect but when i add guilds.channels.read i get bad request?
15 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!That’s not a valid OAuth2 scope
What are you trying to do? Reading messages sent in guilds that a user is in isn’t a thing
no i want to read the channel names
so you can select a channel the bot should send the message
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
yes
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
ow no im sorry this is the web part
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
what do you mean?
like web api requests can't contain the scope guilds.channels.read?
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
ah, yea im building my discord bot itself with discord.js but it also includes a web panel
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
only now i need to manually put the channel id in, it would be better if i could select a channel
alright!
thanks
They don’t seem to list it in the docs here https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes
Discord Developer Portal
Discord Developer Portal — API Docs for Bots and Developers
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.