mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 12:11:11 +00:00
Add param optional to docs
This commit is contained in:
parent
4e53aa4a23
commit
d66ac3fc39
2 changed files with 3 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -23,10 +23,11 @@ class DocumentedParam extends DocumentedItem {
|
||||||
|
|
||||||
serialize() {
|
serialize() {
|
||||||
super.serialize();
|
super.serialize();
|
||||||
const { name, description, type } = this.directData;
|
const { name, description, type, optional } = this.directData;
|
||||||
return {
|
return {
|
||||||
name,
|
name,
|
||||||
description,
|
description,
|
||||||
|
optional,
|
||||||
type: type.serialize(),
|
type: type.serialize(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue