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

    Class InvalidProviderEventError

    A provider emitted an event that does not follow the normalized event contract (IProvider.onEvent): not an object, an unknown kind, or a message/interaction without the ids the core routes by. The event is dropped and this error goes to the bot 'error' event. reason names the broken field; no ids or message contents are included.

    Hierarchy

    • Error
      • InvalidProviderEventError
    Index
    code: "INVALID_PROVIDER_EVENT" = 'INVALID_PROVIDER_EVENT'
    providerId: string

    The provider that emitted the event.

    reason: string

    What is wrong with the event (e.g. 'message.chatId must be a non-empty string').