-
Notifications
You must be signed in to change notification settings - Fork 0
Add tsdoc on structures #33
base: develop
Are you sure you want to change the base?
Conversation
| import type { DeepRequired } from '../utils'; | ||
| import { GatewayException } from '../exceptions'; | ||
| import { BaseClient } from './BaseClient'; | ||
| import type { HttpOptions } from '../http'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you revet imports order changes?
| /** | ||
| * Discord's gateway version. | ||
| * @default 8 | ||
| * @defaultValue 8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defaultValue `8` or defaultValue 8 ?
| import { deconstruct } from '../utils/Snowflake'; | ||
| import { Team } from './team/Team'; | ||
| import { User } from './User'; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why and when some fields can be nullable?
| import { GuildChannel } from './channel/GuildChannel'; | ||
| import { Guild } from './guild/Guild'; | ||
| import { User } from './User'; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same about nullable fields.
| /** | ||
| * The user(s) of the DM | ||
| */ | ||
| public recipients = new Collection<Snowflake, User>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why users?
| */ | ||
| public author?: User; | ||
|
|
||
| public $patch(data: APIEmoji): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use TSDoc's @private
No description provided.