Hierarchy (View Summary, Expand)

Constructors

Properties

application: Application
client: BaseClient
logger: Logger
name: string

Returns the name of the function. Function names are read-only and can not be changed.

Methods

  • Parameters

    • credentials: AuthCredentials

    Returns Promise<
        | { success: false }
        | {
            success: true;
            user: {
                createdAt: Date;
                discordId: string;
                githubId: null | string;
                guilds: string[];
                id: number;
                name: null | string;
                password: string;
                recoveryAttempts: number;
                recoveryCode: null | string;
                recoveryToken: null | string;
                recoveryTokenExpiresAt: null | Date;
                token: null | string;
                tokenExpiresAt: null | Date;
                updatedAt: Date;
                username: string;
            };
        },
    >

  • Parameters

    • user: {
          createdAt: Date;
          discordId: string;
          githubId: null | string;
          guilds: string[];
          id: number;
          name: null | string;
          password: string;
          recoveryAttempts: number;
          recoveryCode: null | string;
          recoveryToken: null | string;
          recoveryTokenExpiresAt: null | Date;
          token: null | string;
          tokenExpiresAt: null | Date;
          updatedAt: Date;
          username: string;
      }

    Returns Promise<string>

MMNEPVFCICPMFPCPTTAAATR