*add destroy method
This commit is contained in:
parent
10ad05f1da
commit
b2aa51d8de
|
@ -171,6 +171,10 @@ class Channel extends Client {
|
||||||
|
|
||||||
return this._created.promise as Promise<void>;
|
return this._created.promise as Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public destroy(error: Error) {
|
||||||
|
this._send?.({ action: "destroy", args: [error] });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class Message extends Client {
|
class Message extends Client {
|
||||||
|
|
Loading…
Reference in New Issue