diff --git a/src/structures/Message.js b/src/structures/Message.js index 22a0de773..439eb4aaa 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -550,7 +550,7 @@ class Message extends Base { * .catch(console.error); */ delete(options = {}) { - if (typeof options !== 'object') throw new TypeError('INVALID_TYPE', 'options', 'object', true); + if (typeof options !== 'object') return Promise.reject(new TypeError('INVALID_TYPE', 'options', 'object', true)); const { timeout = 0, reason } = options; if (timeout <= 0) { return this.channel.messages.delete(this.id, reason).then(() => this);