Class REST/OAuth

Various methods for interacting with oauth. Located at Client#rest.oauth.

Constructors

Methods

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

    Note: OAuth only. Requires the guilds.members.read scope. Bots cannot use this.

    Parameters

    • guild: string

      the ID of the guild

    Returns Promise<Member>

    Caching

    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.

    Parameters

    • applicationID: string

      The ID of the application.

    Returns Promise<RoleConnection>

    Caching

    This method does not cache its result.