Discord.js: GUILD_ROLE_CREATE event

Created on 30 Jul 2018  Â·  1Comment  Â·  Source: discordjs/discord.js

Please describe the problem you are having in as much detail as possible:
Whenever disabled GUILD_ROLE_CREATE event, roleDelete doesn't emitted anymore.

Include a reproducible code sample here, if possible:

const Discord = require('discord.js');
const client = new Discord.Client({
    disabledEvents: [
      'GUILD_ROLE_CREATE'
    ]
  });

client.on('roleDelete', () => {
    console.log('Hello World');
});

client.login('token');

Further details:

  • discord.js version: #master
  • node.js version: 10.7.0
  • Operating system: Darwin
  • Priority this issue should have – please be realistic and elaborate if possible:

  • [ ] I found this issue while running code on a __user account__

  • [x] I have also tested the issue on latest master, commit hash:
question (please use Discord instead)

Most helpful comment

Disabling the create event will stop roles from being cached and also stop the delete event from working for that reason.

>All comments

Disabling the create event will stop roles from being cached and also stop the delete event from working for that reason.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LLamaFTL picture LLamaFTL  Â·  3Comments

tom-barnes picture tom-barnes  Â·  3Comments

Blumlaut picture Blumlaut  Â·  3Comments

ghost picture ghost  Â·  3Comments

Dmitry221060 picture Dmitry221060  Â·  3Comments