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;