mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 11:10:38 +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('./faq'),
|
||||||
require('./ping_pong'),
|
require('./ping_pong'),
|
||||||
require('./avatar'),
|
require('./avatar'),
|
||||||
|
require('./webhook'),
|
||||||
];
|
];
|
||||||
|
|
||||||
const categories = {};
|
const categories = {};
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
file.category = file.category.toLowerCase();
|
file.category = file.category.toLowerCase();
|
||||||
if (!categories[file.category]) {
|
if (!categories[file.category]) categories[file.category] = [];
|
||||||
categories[file.category] = [];
|
|
||||||
}
|
|
||||||
categories[file.category].push(file);
|
categories[file.category].push(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue