Added guilds command to admin.

This commit is contained in:
Keanu Timmermans 2020-08-13 18:13:55 +02:00
parent 979c00ddc8
commit d85040b313
No known key found for this signature in database
GPG Key ID: A02B486C183D2147
1 changed files with 10 additions and 0 deletions

View File

@ -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<any>
{
const guildList = $.client.guilds.cache.array()
.map(e => e.name);
$.channel.send(guildList);
}
})
}
});