Interface iNotificationPreferences<T>

Details about the user's push notification preferences.

interface iNotificationPreferences<T> {
    discord?: {
        discriminator: undefined | string;
        id: string;
        token: string;
        username: string;
    };
    email?: string;
    emailVerification?: iEmailVerificationStatus<T>;
    preferences?: {
        claimAlerts?: boolean;
        ignoreIfInitiator?: boolean;
        listActivity?: boolean;
        transferActivity?: boolean;
    };
}

Type Parameters

Implemented by

Properties

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?: iEmailVerificationStatus<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