mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 22:51:32 +00:00
small sendMessage doc fix (#426)
This commit is contained in:
parent
d9fa561dd9
commit
ea89b7f783
1 changed files with 3 additions and 3 deletions
|
|
@ -201,14 +201,14 @@ sendMessage(channel, content, `options`, `callback`)
|
|||
|
||||
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
|
||||
- **options** - (Optional) `object` containing:
|
||||
- **tts** - (Optional) `Boolean`, should message be text-to-speech
|
||||
- **disableEveryone** - (Optional) `Boolean`, disable `here` and `everyone` mentions
|
||||
- **file** - (Optional) `object`, containing:
|
||||
- **file** - a `File Resolvable`_
|
||||
- **name** - (Optional) `String`, filename to upload file as
|
||||
- **disableEveryone** - (Optional) `Boolean`, disable `here` and `everyone` mentions
|
||||
- **callback** - `function` that takes the following parameters:
|
||||
- **error** - error object if any occurred
|
||||
- **message** - the sent Message_
|
||||
|
|
@ -223,7 +223,7 @@ sendFile(channel, attachment, name, content, `callback`)
|
|||
|
||||
Sends a file to the specified channel.
|
||||
|
||||
- **channel** - a `Channel Resolvable`_
|
||||
- **channel** - a `Channel Resolvable`_ or `User Resolvable`_
|
||||
- **attachment** - A `File Resolvable`_
|
||||
- **name** - (Optional) `String`, filename to upload file as
|
||||
- **content** - (Optional) `String`, text message to send with the attachment
|
||||
|
|
|
|||
Loading…
Reference in a new issue