Represents a user.

Export

IUser

interface IUser {
    activatedCode?: null | string;
    activationTimestamp?: null | number;
    code?: null | string;
    data: any;
    nbCodeCalled: number;
    nbVerifyCalled: number;
    status: UserStatus;
    userid: string;
    username: string;
}

Properties

activatedCode?: null | string

The used code that verified the user.

Memberof

IUser

activationTimestamp?: null | number

The timestamp marking the activation of the user.

Memberof

IUser

code?: null | string

The generated code to verify that user.

Memberof

IUser

data: any

The data used to send the code. Could be an email, a phone number or any complex information. Type should match what is expected from the sender API.

Memberof

IUser

nbCodeCalled: number

The number of times the generation of a code for that user is initiated.

Memberof

IUser

nbVerifyCalled: number

The number of times the verification of a code for that user is initiated.

Memberof

IUser

status: UserStatus

The status of the user.

Memberof

IUser

userid: string

The user Discord ID.

Memberof

IUser

username: string

The user name.

Memberof

IUser