mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
fix(Webhook#send): incorrect docs + return
Two things: * Documentation doesn't account for possible raw object return * Allows the return to be a Message object as well, like the docs originally intended
This commit is contained in:
@@ -806,7 +806,10 @@ class RESTMethods {
|
||||
content,
|
||||
tts,
|
||||
embeds,
|
||||
}, files).then(resolve, reject);
|
||||
}, files).then(data => {
|
||||
if (!this.client.channels) resolve(data);
|
||||
else resolve(this.client.actions.MessageCreate.handle(data).message);
|
||||
}, reject);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user