mirror of
https://github.com/danbulant/discord.js
synced 2026-06-17 21:51:20 +00:00
Fix webhook example
This commit is contained in:
parent
213c45323f
commit
34548e3ecc
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue