mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Add Permission Overwrites deletion
This commit is contained in:
@@ -317,6 +317,15 @@ class RESTMethods {
|
||||
});
|
||||
}
|
||||
|
||||
deletePermissionOverwrites(overwrite) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const endpoint = `${Constants.Endpoints.channelPermissions(overwrite.channel.id)}/${overwrite.id}`;
|
||||
this.rest.makeRequest('del', endpoint, true)
|
||||
.then(() => resolve(overwrite))
|
||||
.catch(reject);
|
||||
});
|
||||
}
|
||||
|
||||
getChannelMessages(channel, payload = {}) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const params = [];
|
||||
|
||||
Reference in New Issue
Block a user