Get an access token for the application owner. If the application is owned by a team, this is restricted to identify
& applications.commands.update
.
The options to for the client credentials grant.
This method does not cache its result.
Exchange a code for an access token.
The options for exchanging the code.
This method does not cache its result.
Get the current OAuth2 application's information.
This method does not cache its result.
Get information about the current authorization.
Note: OAuth only. Bots cannot use this.
Get the connections of the currently authenticated user.
Note: Requires the connections
scope when using oauth.
This method does not cache its result.
Get the guild member information about the currently authenticated user.
Note: OAuth only. Requires the guilds.members.read
scope. Bots cannot use this.
the ID of the guild
This method does not cache its result.
Get the currently authenticated user's guilds. Note these are missing several properties gateway guilds have.
Optional
options: GetCurrentGuildsOptionsThe options for getting the current user's guilds.
This method does not cache its result.
Get the currently authenticated user's information.
This method does not cache its result.
Get a helper instance that can be used with a specific access token.
The access token. Must be prefixed with Bearer
.
Get an application's role connection metadata records.
The ID of the application.
This method does not cache its result.
Get the authenticated user's role connection object for an application. This requires the role_connections.write
scope.
The ID of the application.
This method does not cache its result.
Refresh an existing access token.
The options for refreshing the token.
This method does not cache its result.
Revoke an access token.
The options for revoking the token.
This method does not cache its result.
Update an application's role connections metadata.
The ID of the application.
The metadata records.
This method does not cache its result.
Update the authenticated user's role connection object for an application. This requires the role_connections.write
scope.
The ID of the application.
The metadata to update.
This method does not cache its result.
Various methods for interacting with oauth. Located at Client#rest.oauth.