Various methods for interacting with oauth.

Hierarchy

  • OAuth

Constructors

Accessors

Methods

  • Get the connections of the currently authenticated user.

    Note: Requires the connections scope when using oauth.

    Returns Promise<Connection[]>

  • 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>

  • 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>