Interface IUserBadgeIntegration

Configuration for user message badges.

interface IUserBadgeIntegration {
    customFormat?: string;
    display: "charCount" | "wordCount" | "custom";
    enabled?: boolean;
    id: string;
    point: USER_BADGE;
}

Hierarchy

  • IIntegrationBase
    • IUserBadgeIntegration

Properties

customFormat?: string

Custom formatter function body (receives textLength as arg)

display: "charCount" | "wordCount" | "custom"

What to show in the badge

enabled?: boolean

Whether this integration is enabled (default: true)

id: string

Unique ID for this integration (prevents duplicates)

point: USER_BADGE

Which integration point to target