mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
Document all the events
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -80,12 +80,20 @@ function firstPass() {
|
||||
return cleaned;
|
||||
}
|
||||
|
||||
const seenEvents = {};
|
||||
|
||||
function clean() {
|
||||
const cleaned = firstPass();
|
||||
for (const item of json) {
|
||||
if (!item) {
|
||||
continue;
|
||||
}
|
||||
if (item.kind === 'event') {
|
||||
if (seenEvents[item.name]) {
|
||||
console.log('dupe logs for', item.name);
|
||||
}
|
||||
seenEvents[item.name] = true;
|
||||
}
|
||||
if (item.kind === 'member') {
|
||||
const obj = cleaned.classes[item.memberof] || cleaned.interfaces[item.memberof];
|
||||
const newTypes = [];
|
||||
|
||||
Reference in New Issue
Block a user