rcnlx
Version:
A cli to generate discord.js projects
10 lines (9 loc) • 356 B
JavaScript
const client = require('../index.js')
// roleUpdate
/* Emitted whenever a guild role is updated.
PARAMETER TYPE DESCRIPTION
oldRole Role The role before the update
newRole Role The role after the update */
client.on("roleUpdate", (oldRole, newRole) => {
console.error(`a guild role is updated`);
});