mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
fix bulk delete endpoint
This commit is contained in:
parent
e7b0afbd1f
commit
33de408a70
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ class RESTMethods {
|
|||
Date.now() - Snowflake.deconstruct(id).date.getTime() < 1209600000
|
||||
);
|
||||
}
|
||||
return this.rest.makeRequest('post', `${Constants.Endpoints.channelMessages(channel.id)}/bulk_delete`, true, {
|
||||
return this.rest.makeRequest('post', `${Constants.Endpoints.channelMessages(channel.id)}/bulk-delete`, true, {
|
||||
messages,
|
||||
}).then(() =>
|
||||
this.client.actions.MessageDeleteBulk.handle({
|
||||
|
|
|
|||
Loading…
Reference in a new issue