diff --git a/src/index.ts b/src/index.ts index e553858..e8a41e0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -171,6 +171,10 @@ class Channel extends Client { return this._created.promise as Promise; } + + public destroy(error: Error) { + this._send?.({ action: "destroy", args: [error] }); + } } class Message extends Client {