mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
small sendMessage doc fix (#426)
This commit is contained in:
@@ -201,14 +201,14 @@ sendMessage(channel, content, `options`, `callback`)
|
|||||||
|
|
||||||
Sends a message to the specified channel.
|
Sends a message to the specified channel.
|
||||||
|
|
||||||
- **channel** - a `Channel Resolvable`_
|
- **channel** - a `Channel Resolvable`_ or `User Resolvable`_
|
||||||
- **content** - (Optional if file is passed in options) a `String Resolvable`_ - the message you want to send
|
- **content** - (Optional if file is passed in options) a `String Resolvable`_ - the message you want to send
|
||||||
- **options** - (Optional) `object` containing:
|
- **options** - (Optional) `object` containing:
|
||||||
- **tts** - (Optional) `Boolean`, should message be text-to-speech
|
- **tts** - (Optional) `Boolean`, should message be text-to-speech
|
||||||
|
- **disableEveryone** - (Optional) `Boolean`, disable `here` and `everyone` mentions
|
||||||
- **file** - (Optional) `object`, containing:
|
- **file** - (Optional) `object`, containing:
|
||||||
- **file** - a `File Resolvable`_
|
- **file** - a `File Resolvable`_
|
||||||
- **name** - (Optional) `String`, filename to upload file as
|
- **name** - (Optional) `String`, filename to upload file as
|
||||||
- **disableEveryone** - (Optional) `Boolean`, disable `here` and `everyone` mentions
|
|
||||||
- **callback** - `function` that takes the following parameters:
|
- **callback** - `function` that takes the following parameters:
|
||||||
- **error** - error object if any occurred
|
- **error** - error object if any occurred
|
||||||
- **message** - the sent Message_
|
- **message** - the sent Message_
|
||||||
@@ -223,7 +223,7 @@ sendFile(channel, attachment, name, content, `callback`)
|
|||||||
|
|
||||||
Sends a file to the specified channel.
|
Sends a file to the specified channel.
|
||||||
|
|
||||||
- **channel** - a `Channel Resolvable`_
|
- **channel** - a `Channel Resolvable`_ or `User Resolvable`_
|
||||||
- **attachment** - A `File Resolvable`_
|
- **attachment** - A `File Resolvable`_
|
||||||
- **name** - (Optional) `String`, filename to upload file as
|
- **name** - (Optional) `String`, filename to upload file as
|
||||||
- **content** - (Optional) `String`, text message to send with the attachment
|
- **content** - (Optional) `String`, text message to send with the attachment
|
||||||
|
|||||||
Reference in New Issue
Block a user