mirror of
https://github.com/danbulant/discord.js
synced 2026-07-08 04:31:05 +00:00
docs(MessageManager): Update example for fetchPinned (#4785)
Example showed the method for channel and not messageManager
This commit is contained in:
parent
77b6a7d5bd
commit
8ac25d37d9
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ class MessageManager extends BaseManager {
|
||||||
* @returns {Promise<Collection<Snowflake, Message>>}
|
* @returns {Promise<Collection<Snowflake, Message>>}
|
||||||
* @example
|
* @example
|
||||||
* // Get pinned messages
|
* // Get pinned messages
|
||||||
* channel.fetchPinned()
|
* channel.messages.fetchPinned()
|
||||||
* .then(messages => console.log(`Received ${messages.size} messages`))
|
* .then(messages => console.log(`Received ${messages.size} messages`))
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue