docs: Add missing @extends

#9028 djs
This commit is contained in:
March 7th 2023-01-08 14:39:47 +07:00
parent eaf8167ce4
commit 85d2bdbdc4
10 changed files with 12 additions and 4 deletions

View File

@ -31,7 +31,7 @@ const UNRESUMABLE_CLOSE_CODES = [
* The WebSocket manager for this client.
* <info>This class forwards raw dispatch events,
* read more about it here {@link https://discord.com/developers/docs/topics/gateway}</info>
* @extends EventEmitter
* @extends {EventEmitter}
*/
class WebSocketManager extends EventEmitter {
constructor(client) {

View File

@ -14,7 +14,7 @@ let Worker = null;
* A self-contained shard created by the {@link ShardingManager}. Each one has a {@link ChildProcess} that contains
* an instance of the bot and its {@link Client}. When its child process/worker exits for any reason, the shard will
* spawn a new one to replace it as necessary.
* @extends EventEmitter
* @extends {EventEmitter}
*/
class Shard extends EventEmitter {
constructor(manager, id) {

View File

@ -11,6 +11,7 @@ const AssetTypes = Object.keys(ClientApplicationAssetTypes);
/**
* Represents an OAuth2 Application.
* @extends {Base}
* @abstract
*/
class DeveloperPortalApplication extends Base {

View File

@ -3,7 +3,8 @@
const { Channel } = require('./Channel');
/**
* Represents a channel that displays a directory of guilds
* Represents a channel that displays a directory of guilds.
* @extends {Channel}
*/
class DirectoryChannel extends Channel {
_patch(data) {

View File

@ -20,6 +20,7 @@ const IntegrationApplication = require('./IntegrationApplication');
/**
* Represents a guild integration.
* @extends {Base}
*/
class Integration extends Base {
constructor(client, data, guild) {

View File

@ -5,6 +5,7 @@ const { Error, TypeError } = require('../errors');
/**
* Represents the voice state for a Guild Member.
* @extends {Base}
*/
class VoiceState extends Base {
constructor(guild, data) {

View File

@ -6,6 +6,7 @@ const WidgetMember = require('./WidgetMember');
/**
* Represents a Widget.
* @extends {Base}
*/
class Widget extends Base {
constructor(client, data) {

View File

@ -4,6 +4,7 @@ const Base = require('./Base');
/**
* Represents a WidgetMember.
* @extends {Base}
*/
class WidgetMember extends Base {
/**

View File

@ -12,6 +12,7 @@ let deprecationEmittedForFetchAssets = false;
/**
* Represents an OAuth2 Application.
* @extends {Base}
* @abstract
*/
class Application extends Base {

View File

@ -25,6 +25,7 @@ const Util = require('../../util/Util');
/**
* Abstract class for defining a new Collector.
* @extends {EventEmitter}
* @abstract
*/
class Collector extends EventEmitter {