fetchPinned(cache = true) {
    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.add(message, cache));
      return messages;
    });
  }
/**
   * Fetches the pinned messages of this channel and returns a collection of them.
   * <info>The returned Collection does not contain any reaction data of the messages.
   * Those need to be fetched separately.</info>
   * @param {boolean} [cache=true] Whether to cache the message(s)
   * @returns {Promise<Collection<Snowflake, Message>>}
   * @example
   * // Get pinned messages
   * channel.messages.fetchPinned()
   *   .then(messages => console.log(`Received ${messages.size} messages`))
   *   .catch(console.error);
   */
Fetches the pinned messages of this channel and returns a collection of them.
The returned Collection does not contain any reaction data of the messages.
Fetches the pinned messages of this channel and returns a collection of them . The returned Collection does not contain any reaction data of the messages .
fetchPinned(cache = true) {
    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.add(message, cache));
      return messages;
    });
  }
fetchPinned ( cache = true ) { 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 . add ( message , cache ) ) ; return messages ; } ) ; }
Fetches the pinned messages of this channel and returns a collection of them.
Fetches the pinned messages of this channel and returns a collection of them .