From d85040b3137728324c36ee749c5647da6e6f8252 Mon Sep 17 00:00:00 2001 From: Keanu Date: Thu, 13 Aug 2020 18:13:55 +0200 Subject: [PATCH] Added guilds command to admin. --- src/commands/admin.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/commands/admin.ts b/src/commands/admin.ts index f9b0069..82e21b3 100644 --- a/src/commands/admin.ts +++ b/src/commands/admin.ts @@ -122,6 +122,16 @@ export default new Command({ console.log(e); } } + }), + guilds: new Command({ + description: "Shows a list of all guilds the bot is a member of.", + permission: Command.PERMISSIONS.BOT_SUPPORT, + async run($: CommonLibrary): Promise + { + const guildList = $.client.guilds.cache.array() + .map(e => e.name); + $.channel.send(guildList); + } }) } }); \ No newline at end of file