feat(messageAck) New Event

#233 .-.
This commit is contained in:
March 7th
2022-08-03 19:34:58 +07:00
parent 196c03f8cc
commit 288d295f8a
6 changed files with 36 additions and 87 deletions

View File

@@ -1014,6 +1014,20 @@ class Message extends Base {
});
return true;
}
/**
* Marks the message as read.
* @returns {boolean}
*/
async markRead() {
await this.client.api.channels[this.channelId].messages[this.id].ack.post({
data: {
token: null,
},
});
return true;
}
/**
* Click specific button [Suggestion: Dux#2925]
* @param {string} buttonID Button ID