Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(MessageBulkDeleteAction): remove deleted messages from cache #2046

Merged
merged 1 commit into from
Oct 22, 2017

Conversation

SpaceEEC
Copy link
Member

@SpaceEEC SpaceEEC commented Oct 21, 2017

Please describe the changes this PR makes and why it should be merged:
This fixes #2036

The bulk delete action doesn't remove the deleted messages from the cache.

This causes the call to the bulk delete action from TextBasedChannel#bulkDelete to fire the event the first time and the gateway event to fire it the second time.

Removing the deleted messages from the cache resolves the issue.
Not like they were supposed to stay there in the first place.

Semantic versioning classification:

  • This PR changes the library's interface (methods or parameters added)
    • This PR includes breaking changes (methods removed or renamed, parameters moved or removed)
  • This PR only includes non-code changes, like changes to documentation, README, etc.

@iCrawl iCrawl merged commit 356778b into discordjs:master Oct 22, 2017
@SpaceEEC SpaceEEC deleted the BulkDelete branch October 22, 2017 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

messageDeleteBulk event fires twice
2 participants