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

View File

@@ -80,11 +80,11 @@ class CustomStatus {
class RichPresence {
/**
* @param {Client} client Discord client
* @param {Client} [client] Discord client
* @param {RichPresence} [data={}] RichPresence to clone or raw data
* @param {boolean} [IPC=false] Whether to use IPC (RPC for Discord Apps)
*/
constructor(client, data = {}, IPC = false) {
constructor(client = {}, data = {}, IPC = false) {
Object.defineProperty(this, 'client', { value: client });
/**
* The activity's name