mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
15 lines
310 B
JavaScript
15 lines
310 B
JavaScript
const files = [
|
|
require('./getting_started'),
|
|
];
|
|
|
|
const categories = {};
|
|
for (const file of files) {
|
|
file.category = file.category.toLowerCase();
|
|
if (!categories[file.category]) {
|
|
categories[file.category] = {};
|
|
}
|
|
categories[file.category][file.name] = file.data;
|
|
}
|
|
|
|
module.exports = categories;
|