mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Updated getLogs docs to be valid for 4.1.0
This commit is contained in:
@@ -55,9 +55,9 @@ author = u'hydrabolt'
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '3.10'
|
||||
version = '4.1'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '3.10.1'
|
||||
release = '4.1.0'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
|
||||
@@ -250,13 +250,18 @@ Deletes the specified channel.
|
||||
|
||||
- **error** - An error if one occurred, otherwise it is null.
|
||||
|
||||
getChannelLogs(channel, `amount`, `callback`)
|
||||
getChannelLogs(channel, `amount`, `options`, `callback`)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Gets previous messages from the specified channel.
|
||||
|
||||
- **channel** - A `Channel Resolvable`_ to take logs from.
|
||||
- **amount** - A `Number` that defaults to **500**. This is the amount of messages to try and get.
|
||||
- **options** - An `Object` containing the following values:
|
||||
|
||||
- **before** - A Message_ (or String ID) which will make the function return messages before this message.
|
||||
- **after** - A Message_ (or String ID) which will make the function return messages after this message.
|
||||
|
||||
- **callback** - A `function` that can take the following parameters:
|
||||
|
||||
- **error** - An error if one occurred, otherwise it is null.
|
||||
|
||||
Reference in New Issue
Block a user