Class NotificationPreferences<T>

Details about the user's push notification preferences.

Type Parameters

Hierarchy (view full)

Implements

Constructors

Properties

discord?: {
    discriminator: undefined | string;
    id: string;
    token: string;
    username: string;
}

The Discord ID to receive push notifications.

email?: string

The email to receive push notifications.

emailVerification?: EmailVerificationStatus<T>

The verification status of the email.

preferences?: {
    claimAlerts?: boolean;
    ignoreIfInitiator?: boolean;
    listActivity?: boolean;
    transferActivity?: boolean;
}

The preferences for the notifications. What type of notifications does the user want to receive?

Methods

  • Compares this object's fields to another object's fields for equality. Equality is determined by comparing the JSON representations of the objects.

    If normalizeNumberTypes is true, then all number types will be compared as strings (i.e. "1n" === "1" === 1). Else, they will be compared as their native types (i.e. 1n !== 1 !== "1").

    Type Parameters

    Parameters

    • other: undefined | null | CustomType<U>
    • OptionalnormalizeNumberTypes: boolean

    Returns boolean