mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
update doc gen
This commit is contained in:
parent
2007ed7cef
commit
24f3a36701
1 changed files with 6 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ let parse;
|
|||
|
||||
const customDocs = require('../custom/index');
|
||||
|
||||
const GEN_VERSION = 8;
|
||||
const GEN_VERSION = 9;
|
||||
|
||||
try {
|
||||
fs = require('fs-extra');
|
||||
|
|
@ -122,6 +122,11 @@ function clean() {
|
|||
}
|
||||
seenEvents[item.name] = true;
|
||||
const obj = cleaned.classes[item.memberof] || cleaned.interfaces[item.memberof];
|
||||
const newParams = [];
|
||||
for (const param of item.params) {
|
||||
newParams.push(matchReturnName(param.name));
|
||||
}
|
||||
item.params = newParams;
|
||||
obj.events.push(item);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue