diff --git a/lib/Client.js b/lib/Client.js index 984564d..7b49d77 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -130,6 +130,7 @@ class Client extends ClientBase { }); } part(channel) { + channel = _.channel() return this._sendCommand({ delay: null, channel: null, command: `PART ${channel}` }, (res, rej) => this.once('_promisePart', err => !err ? res([ _.channel(channel) ]) : rej(err)) );