mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Add pinning (#434)
Added methods: pinMessage() unpinMessage() getPinnedMessages() Added params for getChannelLogs: around
This commit is contained in:
@@ -48,6 +48,7 @@ var Message = (function (_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) {
|
||||
@@ -128,6 +129,14 @@ var Message = (function (_Equality) {
|
||||
return this.client.replyTTS.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
||||
};
|
||||
|
||||
Message.prototype.pin = function pin() {
|
||||
return this.client.pinMessage.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
||||
};
|
||||
|
||||
Message.prototype.unpin = function unpin() {
|
||||
return this.client.unpinMessage.apply(this.client, req(this, arguments));
|
||||
};
|
||||
|
||||
_createClass(Message, [{
|
||||
key: "sender",
|
||||
get: function get() {
|
||||
|
||||
Reference in New Issue
Block a user