Class OAuthHelper

A helper to make using authenticated oauth requests without needing a new client instance.

Constructors

Methods

  • Delete the authenticated user's role connection object for an application. This requires the role_connections.write scope.

    Parameters

    • applicationID: string

      The ID of the application.

    Returns Promise<void>

    Caching

    This method does not cache its result.

  • Get the guild member information about the currently authenticated user.

    Note: Requires the guilds.members.read scope.

    Parameters

    • guild: string

      the ID of the guild

    Returns Promise<Member>