Add pinning (#434)

Added methods:
pinMessage()
unpinMessage()
getPinnedMessages()

Added params for getChannelLogs:
around
This commit is contained in:
Manuel Kraus
2016-06-18 04:21:52 +02:00
committed by abal
parent 9c9768f772
commit ba51df918c
10 changed files with 399 additions and 63 deletions

View File

@@ -23,6 +23,7 @@ export default class Message extends Equality{
this.embeds = data.embeds;
this.timestamp = Date.parse(data.timestamp);
this.everyoneMentioned = data.mention_everyone || data.everyoneMentioned;
this.pinned = data.pinned;
this.id = data.id;
if(data.edited_timestamp) {
@@ -93,4 +94,12 @@ export default class Message extends Equality{
replyTTS(){
return this.client.replyTTS.apply(this.client, reg(this, arguments));
}
pin() {
return this.client.pinMessage.apply(this.client, reg(this, arguments));
}
unpin() {
return this.client.unpinMessage.apply(this.client, req(this, arguments));
}
}