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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user