diff --git a/src/index.ts b/src/index.ts index e553858..af934cd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -255,6 +255,10 @@ class Message extends Client { public send(data: any) { this._send?.({ action: "send", args: [data] }); } + + public destroy(error: Error) { + this._send?.({ action: "destroy", args: [error] }); + } } const createChannel = factory(Channel, MODULE);