From ea1949a0e2faf7e09e7ad9239e421323919975b4 Mon Sep 17 00:00:00 2001 From: Robin B Date: Mon, 4 Sep 2017 05:26:36 +0200 Subject: [PATCH] fix(MessageStore): Fix fetchPinned method and add notice. (#1881) --- src/stores/MessageStore.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stores/MessageStore.js b/src/stores/MessageStore.js index 7ae45779a..1e7457910 100644 --- a/src/stores/MessageStore.js +++ b/src/stores/MessageStore.js @@ -61,10 +61,12 @@ class MessageStore extends DataStore { /** * Fetches the pinned messages of this channel and returns a collection of them. + * The returned Collection does not contain the reactions of the messages. + * Those need to be fetched seperately. * @returns {Promise>} */ fetchPinned() { - return this.client.api.channels[this.message.channel.id].pins.get().then(data => { + return this.client.api.channels[this.channel.id].pins.get().then(data => { const messages = new Collection(); for (const message of data) messages.set(message.id, this.create(message)); return messages;