Notion Helper - v1.3.29
    Preparing search index...

    Function mentionUser

    • Creates a user mention with shorthand syntax.

      Parameters

      • userId: string

        The user ID to mention

      • Optionaloptions: { annotations?: Object; url?: string } = {}

        Additional options for the mention

        • Optionalannotations?: Object

          Text annotations (bold, italic, etc.)

        • Optionalurl?: string

          URL for the mention

      Returns Object[]

      • Array with a single Rich Text Object containing the user mention
      // Simple user mention
      mentionUser("user_123")

      // User mention with annotations
      mentionUser("user_123", { annotations: { bold: true, color: "blue" } })