aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bot.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/bot.js b/bot.js
index 0bc043d..ad413ab 100644
--- a/bot.js
+++ b/bot.js
@@ -110,6 +110,17 @@ rl.on('line', function(cmd){
}
}
break;
+ case "channels":
+ if (!args[1]) {
+ console.log('[!] Please insert the guild\'s ID.')
+ } else {
+ var guild = client.guilds.get(args[1]);
+ console.log('[i] Here\'s the channels that this guild have:')
+ for ([id, channel, guild] of guild && client.channels) {
+ console.log(` Channel: #${channel.name} - ID: ${channel.id}`);
+ }
+ }
+ break;
case "leave":
if (!args[1]) {
console.log('[!] Please insert the guild\'s ID.');