mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
docs(MessageManager): add clarification to fetch messages (#9222)
* docs(MessageManager): add clarification to fetch messages [Discord's documentation](https://discord.com/developers/docs/resources/channel#get-channel-messages) mentions that you can only use before, after or around. This is not mentioned in D.JS documentation, and after some time trying to figure out why I was getting more messages than I should, decided to read the documentation. * docs(MessageManager): remove mutually exclusive description --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -49,6 +49,7 @@ class MessageManager extends CachedManager {
|
||||
|
||||
/**
|
||||
* Options used to fetch multiple messages.
|
||||
* <info>The `before`, `after`, and `around` parameters are mutually exclusive.</info>
|
||||
* @typedef {Object} FetchMessagesOptions
|
||||
* @property {number} [limit] The maximum number of messages to return
|
||||
* @property {Snowflake} [before] Consider only messages before this id
|
||||
|
||||
Reference in New Issue
Block a user