mirror of
https://github.com/ION606/custom_discordjs.git
synced 2026-05-14 22:26:54 +00:00
added message reactions
This commit is contained in:
@@ -102,17 +102,21 @@ export class message extends DataManager {
|
||||
}
|
||||
|
||||
|
||||
delete() {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
async delete() {
|
||||
try {
|
||||
const response = await this.client.axiosCustom.delete(`/channels/${this.channel.id}/messages/${this.id}`);
|
||||
|
||||
resolve(response.data);
|
||||
return response.data;
|
||||
} catch (err) {
|
||||
reject(err);
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
/**
|
||||
* @param {string} reaction
|
||||
*/
|
||||
async react(reaction) {
|
||||
this.axiosCustom.put(`/channels/${this.channel.id}/messages/${this.id}/reactions/${reaction}/@me`);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user