rcnlx
Version:
A cli to generate discord.js projects
10 lines (9 loc) • 460 B
JavaScript
const client = require('../../../index');
// channelUpdate
/* Emitted whenever a channel is updated - e.g. name change, topic change.
PARAMETER TYPE DESCRIPTION
oldChannel Channel The channel before the update
newChannel Channel The channel after the update */
client.on("channelUpdate", (oldChannel, newChannel) => {
console.log(`channelUpdate -> a channel is updated - e.g. name change, topic change`);
});