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: Handle message bulk delete and thread delete in collectors #6902

Merged
merged 4 commits into from Oct 29, 2021

Conversation

Jiralite
Copy link
Member

Please describe the changes this PR makes and why it should be merged:
If the bound message to a collector was deleted from messageDeleteBulk, the collector will still have bound listeners. This should resolve #6895.

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating

src/structures/InteractionCollector.js Outdated Show resolved Hide resolved
src/structures/InteractionCollector.js Outdated Show resolved Hide resolved
src/structures/MessageCollector.js Outdated Show resolved Hide resolved
src/structures/ReactionCollector.js Outdated Show resolved Hide resolved
src/structures/InteractionCollector.js Outdated Show resolved Hide resolved
src/structures/ReactionCollector.js Outdated Show resolved Hide resolved
@Jiralite
Copy link
Member Author

Thread deletion was additionally not being checked for in these collectors, so I've gone ahead and added them in except for interaction collectors. Interaction collectors seem to be very difficult to work with due to allowing raw messages & having all options optional, so I've opened up #6905.

@Jiralite Jiralite changed the title fix: Handle message bulk delete in collectors fix: Handle message bulk delete and thread delete in collectors Oct 27, 2021
@iCrawl iCrawl added this to the Version 13.3 milestone Oct 29, 2021
@iCrawl iCrawl merged commit d6685b1 into discordjs:main Oct 29, 2021
@Jiralite Jiralite deleted the listen-to-bulkDelete branch October 29, 2021 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an event listener for MESSAGE_DELETE_BULK to collectors
6 participants