Add TextBasedChanel.fetchPinnedMessages()

This commit is contained in:
Amish Shah
2016-08-28 19:42:35 +01:00
parent a57d6b723a
commit 9f1475f358
6 changed files with 38 additions and 1 deletions

View File

@@ -492,6 +492,10 @@ class RESTMethods {
.catch(reject);
});
}
getChannelPinnedMessages(channel) {
return this.rest.makeRequest('get', `${Constants.Endpoints.channel(channel.id)}/pins`, true);
}
}
module.exports = RESTMethods;