mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
Add custom file support to new docs
This commit is contained in:
@@ -6,9 +6,9 @@ const categories = {};
|
||||
for (const file of files) {
|
||||
file.category = file.category.toLowerCase();
|
||||
if (!categories[file.category]) {
|
||||
categories[file.category] = {};
|
||||
categories[file.category] = [];
|
||||
}
|
||||
categories[file.category][file.name] = file.data;
|
||||
categories[file.category].push(file);
|
||||
}
|
||||
|
||||
module.exports = categories;
|
||||
|
||||
Reference in New Issue
Block a user