I need a code that sends a message every time a channel is created

Viewed 60
1 Answers

You can use the channelCreate event.

Here's a simple example for you:

client.on("channelCreate", async (channel) => {
  const channelName = channel.name;
  console.log(`New channel created: ${channelName}`);
});
Related