Skip to content

Commit

Permalink
Wrap Message from executeWebhook() (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC authored and abalabahaha committed Dec 1, 2019
1 parent d3190d0 commit 79475ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Client.js
Expand Up @@ -628,7 +628,7 @@ class Client extends EventEmitter {
* @arg {Boolean} [options.tts=false] Whether the message should be a TTS message or not
* @arg {Boolean} [options.wait=false] Whether to wait for the server to confirm the message create or not
* @arg {Boolean} [options.disableEveryone] Whether to filter @everyone/@here or not (overrides default)
* @returns {Promise}
* @returns {Promise<Message?>}
*/
executeWebhook(webhookID, token, options) {
if(!options.content && !options.file && !options.embeds) {
Expand All @@ -643,7 +643,7 @@ class Client extends EventEmitter {
username: options.username,
avatar_url: options.avatarURL,
tts: options.tts
}, options.file);
}, options.file).then((response) => options.wait ? new Message(response, this) : undefined);
}

/**
Expand Down

0 comments on commit 79475ee

Please sign in to comment.