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