mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Added role.delete()
This commit is contained in:
@@ -41,6 +41,7 @@ client.on('guildMemberRemove', (guild, user) => {
|
||||
|
||||
client.on('guildRoleCreate', (guild, role) => {
|
||||
console.log('new role', role.name, 'in', guild.name);
|
||||
role.delete().then(role => console.log("deleted " + role.name)).catch(console.log);
|
||||
});
|
||||
|
||||
client.on('guildRoleDelete', (guild, role) => {
|
||||
|
||||
Reference in New Issue
Block a user