Add Message Deletion via message.delete()

This commit is contained in:
hydrabolt
2016-04-21 18:50:46 +01:00
parent a2841f285c
commit c42e303b7b
4 changed files with 20 additions and 3 deletions

View File

@@ -50,6 +50,16 @@ class RESTMethods{
.catch(reject);
});
}
DeleteMessage(channel, message) {
return new Promise((resolve, reject) => {
this.rest.makeRequest('del', Constants.Endpoints.CHANNEL_MESSAGE(channel.id, message.id), true)
.then(() => {
resolve(message);
})
.catch(reject);
});
}
}
module.exports = RESTMethods;