Skip to main content
Defined in: core/errors.ts:33 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.

Extends

  • Error

Constructors

Constructor

Defined in: core/errors.ts:39

Parameters

Returns

InvalidProviderEventError

Overrides

Error.constructor

Properties

code

Defined in: core/errors.ts:34

providerId

Defined in: core/errors.ts:36 The provider that emitted the event.

reason

Defined in: core/errors.ts:38 What is wrong with the event (e.g. 'message.chatId must be a non-empty string').