Discord messages.read in Node.js

Does anyone know how to use discord’s Oauth2 messages.read scope with Node?

Discord’s documentation only mentions this once, and I can’t find anything about it anywhere else.

More characters to reach character minimumMore characters to reach character minimumMore characters to reach character minimumMore characters to reach character minimumMore characters to reach character minimumMore characters to reach character minimum

The documentation on the Discord Developer Portal has a section on OAuth2 scopes. In a nutshell, to be able to read the messages of a user, your client app needs to obtain an access token with this scope. For this, you probably need to get an approval from the user (once your client goes through the Authorization Code Flow). Please follow the official documentation for more info. If you need to understand how OAuth2 Authorization Code Flow works, there are plenty of other resources online.

Leave a Comment