Class NotificationPreferences<T>

Details about the user's push notification preferences.

Type Parameters

Hierarchy (view full)




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

The Discord ID to receive push notifications.

Type declaration

  • discriminator: undefined | string
  • id: string
  • token: string
  • username: string
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?

Type declaration

  • Optional claimAlerts?: boolean
  • Optional ignoreIfInitiator?: boolean
  • Optional listActivity?: boolean
  • Optional transferActivity?: boolean


  • 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


    • other: undefined | null | CustomType<U>
    • Optional normalizeNumberTypes: boolean

    Returns boolean