mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +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:
@@ -95,7 +95,7 @@ class Webhook {
|
||||
* @param {StringResolvable} content The content to send
|
||||
* @param {WebhookMessageOptions|Attachment|RichEmbed} [options] The options to provide
|
||||
* can also be just a RichEmbed or Attachment
|
||||
* @returns {Promise<Message|Message[]>}
|
||||
* @returns {Promise<Message|Message[]|Object|Object[]>}
|
||||
* @example
|
||||
* // Send a message
|
||||
* webhook.send('hello!')
|
||||
|
||||
Reference in New Issue
Block a user