mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix webhook example
This commit is contained in:
@@ -4,14 +4,13 @@ const files = [
|
||||
require('./faq'),
|
||||
require('./ping_pong'),
|
||||
require('./avatar'),
|
||||
require('./webhook'),
|
||||
];
|
||||
|
||||
const categories = {};
|
||||
for (const file of files) {
|
||||
file.category = file.category.toLowerCase();
|
||||
if (!categories[file.category]) {
|
||||
categories[file.category] = [];
|
||||
}
|
||||
if (!categories[file.category]) categories[file.category] = [];
|
||||
categories[file.category].push(file);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user