Error code 50025 occurs when the access_token provided is either missing or is invalid.
A token can be invalid when it is provided for the wrong application or wrong user. Access tokens are specific to a user or an application, so when attempting to add a user to a guild using an access token you need a unique token for each user you are attempting to add.
This is all the information I can provide without having more context.
As a note, missing scopes is 50026, so that definitely isn't the problem.
Error code 50025 occurs when the access_token provided is either missing or is invalid. A token can be invalid when it is provided for the wrong application or wrong user. Access tokens are specific to a user or an application, so when attempting to add a user to a guild using an access token you need a unique token for each user you are attempting to add.
This is all the information I can provide without having more context. As a note, missing scopes is 50026, so that definitely isn't the problem.
Originally posted by @DV8FromTheWorld in https://github.com/discord/discord-api-docs/issues/5578#issuecomment-1289132148