parent
eaf8167ce4
commit
85d2bdbdc4
@ -31,7 +31,7 @@ const UNRESUMABLE_CLOSE_CODES = [
|
|||||||
* The WebSocket manager for this client.
|
* The WebSocket manager for this client.
|
||||||
* <info>This class forwards raw dispatch events,
|
* <info>This class forwards raw dispatch events,
|
||||||
* read more about it here {@link https://discord.com/developers/docs/topics/gateway}</info>
|
* read more about it here {@link https://discord.com/developers/docs/topics/gateway}</info>
|
||||||
* @extends EventEmitter
|
* @extends {EventEmitter}
|
||||||
*/
|
*/
|
||||||
class WebSocketManager extends EventEmitter {
|
class WebSocketManager extends EventEmitter {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
|
@ -14,7 +14,7 @@ let Worker = null;
|
|||||||
* A self-contained shard created by the {@link ShardingManager}. Each one has a {@link ChildProcess} that contains
|
* 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
|
* 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.
|
* spawn a new one to replace it as necessary.
|
||||||
* @extends EventEmitter
|
* @extends {EventEmitter}
|
||||||
*/
|
*/
|
||||||
class Shard extends EventEmitter {
|
class Shard extends EventEmitter {
|
||||||
constructor(manager, id) {
|
constructor(manager, id) {
|
||||||
|
@ -11,6 +11,7 @@ const AssetTypes = Object.keys(ClientApplicationAssetTypes);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents an OAuth2 Application.
|
* Represents an OAuth2 Application.
|
||||||
|
* @extends {Base}
|
||||||
* @abstract
|
* @abstract
|
||||||
*/
|
*/
|
||||||
class DeveloperPortalApplication extends Base {
|
class DeveloperPortalApplication extends Base {
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
const { Channel } = require('./Channel');
|
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 {
|
class DirectoryChannel extends Channel {
|
||||||
_patch(data) {
|
_patch(data) {
|
||||||
|
@ -20,6 +20,7 @@ const IntegrationApplication = require('./IntegrationApplication');
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a guild integration.
|
* Represents a guild integration.
|
||||||
|
* @extends {Base}
|
||||||
*/
|
*/
|
||||||
class Integration extends Base {
|
class Integration extends Base {
|
||||||
constructor(client, data, guild) {
|
constructor(client, data, guild) {
|
||||||
|
@ -5,6 +5,7 @@ const { Error, TypeError } = require('../errors');
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents the voice state for a Guild Member.
|
* Represents the voice state for a Guild Member.
|
||||||
|
* @extends {Base}
|
||||||
*/
|
*/
|
||||||
class VoiceState extends Base {
|
class VoiceState extends Base {
|
||||||
constructor(guild, data) {
|
constructor(guild, data) {
|
||||||
|
@ -6,6 +6,7 @@ const WidgetMember = require('./WidgetMember');
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a Widget.
|
* Represents a Widget.
|
||||||
|
* @extends {Base}
|
||||||
*/
|
*/
|
||||||
class Widget extends Base {
|
class Widget extends Base {
|
||||||
constructor(client, data) {
|
constructor(client, data) {
|
||||||
|
@ -4,6 +4,7 @@ const Base = require('./Base');
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a WidgetMember.
|
* Represents a WidgetMember.
|
||||||
|
* @extends {Base}
|
||||||
*/
|
*/
|
||||||
class WidgetMember extends Base {
|
class WidgetMember extends Base {
|
||||||
/**
|
/**
|
||||||
|
@ -12,6 +12,7 @@ let deprecationEmittedForFetchAssets = false;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents an OAuth2 Application.
|
* Represents an OAuth2 Application.
|
||||||
|
* @extends {Base}
|
||||||
* @abstract
|
* @abstract
|
||||||
*/
|
*/
|
||||||
class Application extends Base {
|
class Application extends Base {
|
||||||
|
@ -25,6 +25,7 @@ const Util = require('../../util/Util');
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstract class for defining a new Collector.
|
* Abstract class for defining a new Collector.
|
||||||
|
* @extends {EventEmitter}
|
||||||
* @abstract
|
* @abstract
|
||||||
*/
|
*/
|
||||||
class Collector extends EventEmitter {
|
class Collector extends EventEmitter {
|
||||||
|
Loading…
Reference in New Issue
Block a user