*add destroy method

This commit is contained in:
Derrick Hammer 2023-04-08 22:51:51 -04:00
parent 73963ff1b5
commit 0483c27c94
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -255,6 +255,10 @@ class Message extends Client {
public send(data: any) { public send(data: any) {
this._send?.({ action: "send", args: [data] }); this._send?.({ action: "send", args: [data] });
} }
public destroy(error: Error) {
this._send?.({ action: "destroy", args: [error] });
}
} }
const createChannel = factory<Channel>(Channel, MODULE); const createChannel = factory<Channel>(Channel, MODULE);