mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
fix(ClientPresence): use possibly extended constructor from structures
This commit is contained in:
@@ -14,10 +14,10 @@ const VoiceBroadcast = require('./voice/VoiceBroadcast');
|
|||||||
const UserStore = require('../stores/UserStore');
|
const UserStore = require('../stores/UserStore');
|
||||||
const ChannelStore = require('../stores/ChannelStore');
|
const ChannelStore = require('../stores/ChannelStore');
|
||||||
const GuildStore = require('../stores/GuildStore');
|
const GuildStore = require('../stores/GuildStore');
|
||||||
const ClientPresence = require('../structures/ClientPresence');
|
|
||||||
const GuildEmojiStore = require('../stores/GuildEmojiStore');
|
const GuildEmojiStore = require('../stores/GuildEmojiStore');
|
||||||
const { Events, browser } = require('../util/Constants');
|
const { Events, browser } = require('../util/Constants');
|
||||||
const DataResolver = require('../util/DataResolver');
|
const DataResolver = require('../util/DataResolver');
|
||||||
|
const Structures = require('../util/Structures');
|
||||||
const { Error, TypeError, RangeError } = require('../errors');
|
const { Error, TypeError, RangeError } = require('../errors');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -96,6 +96,7 @@ class Client extends BaseClient {
|
|||||||
*/
|
*/
|
||||||
this.channels = new ChannelStore(this);
|
this.channels = new ChannelStore(this);
|
||||||
|
|
||||||
|
const ClientPresence = Structures.get('ClientPresence');
|
||||||
/**
|
/**
|
||||||
* The presence of the Client
|
* The presence of the Client
|
||||||
* @private
|
* @private
|
||||||
|
|||||||
Reference in New Issue
Block a user