Browse Source

Change kulboard message if channel exists

master
Abheek Dhawan 4 years ago
parent
commit
8ade4f0a9d
  1. 2
      index.js

2
index.js

@ -136,7 +136,7 @@ async function kulboardCreate(message) {
if (result.kulboard_id) { if (result.kulboard_id) {
kulboardChannel = result.kulboard_id; kulboardChannel = result.kulboard_id;
if (message.guild.channels.cache.get(kulboardChannel)) { if (message.guild.channels.cache.get(kulboardChannel)) {
message.reply('bot logs channel already exists!'); message.reply('külboard channel already exists!');
} else { } else {
// Create "#bot-logs" text channel to track message deletes, edits, and channel creations // Create "#bot-logs" text channel to track message deletes, edits, and channel creations
message.guild.channels.create('külboard', { message.guild.channels.create('külboard', {

Loading…
Cancel
Save