@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Class UserDataError

    Error thrown (or rejected) by every ctx.user / bot.user() operation on invalid input or when user data is not available. Inspect code rather than the message.

    try { await ctx.user.set('a..b', 1) }
    catch (error) {
    if (error instanceof UserDataError && error.code === 'INVALID_PATH') { ... }
    }

    Hierarchy

    • Error
      • UserDataError
    Index