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

messageDeleteBulk event fires twice #2036

Closed
1 of 2 tasks
xDimGG opened this issue Oct 15, 2017 · 1 comment · Fixed by #2046
Closed
1 of 2 tasks

messageDeleteBulk event fires twice #2036

xDimGG opened this issue Oct 15, 2017 · 1 comment · Fixed by #2046

Comments

@xDimGG
Copy link
Contributor

xDimGG commented Oct 15, 2017

Please describe the problem you are having in as much detail as possible:
The messageDeleteBulk event is fired twice

Include a reproducible code sample here, if possible:

const { Client } = require('discord.js');
const bot = new Client();

bot.on('message', msg => {
  if (msg.content === '!bulk-delete') msg.channel.bulkDelete(2);
});

bot.on('messageDeleteBulk', m => console.log(`Bulk deleted ${m.size} messages.`));

bot.login('token');

Further details:

  • discord.js version: Master

  • node.js version: 8.6.0

  • Operating system: Windows 10

  • Priority this issue should have – please be realistic and elaborate if possible: Medium-High

  • I found this issue while running code on a user account

  • I have also tested the issue on latest master, commit hash: 68a3058

@robflop
Copy link

robflop commented Oct 15, 2017

I've just confirmed this on the provided hash (latest at time of writing). Looking into it now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants