mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 14:41:36 +00:00
fix event docs
This commit is contained in:
parent
f255094760
commit
196fdfc31b
2 changed files with 3 additions and 1 deletions
File diff suppressed because one or more lines are too long
|
|
@ -55,9 +55,11 @@ class DocumentedEvent extends DocumentedItem {
|
|||
this.directData = data;
|
||||
this.directData.meta = new DocumentedItemMeta(this, data.meta);
|
||||
const newParams = [];
|
||||
data.params = data.params || [];
|
||||
for (const param of data.params) {
|
||||
newParams.push(new DocumentedParam(this, param));
|
||||
}
|
||||
this.directData.params = newParams;
|
||||
}
|
||||
|
||||
serialize() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue