mirror of
https://github.com/danbulant/discord.js
synced 2026-06-22 00:02:13 +00:00
Webpack build: ee4a8bb3b6
This commit is contained in:
parent
02f1c8a795
commit
57859d50cd
2 changed files with 10 additions and 7 deletions
|
|
@ -10358,12 +10358,6 @@ class Client extends EventEmitter {
|
|||
constructor(options = {}) {
|
||||
super();
|
||||
|
||||
/**
|
||||
* Whether the client is in a browser environment
|
||||
* @type {boolean}
|
||||
*/
|
||||
this.browser = typeof window !== 'undefined';
|
||||
|
||||
// Obtain shard details from environment
|
||||
if (!options.shardId && 'SHARD_ID' in process.env) options.shardId = Number(process.env.SHARD_ID);
|
||||
if (!options.shardCount && 'SHARD_COUNT' in process.env) options.shardCount = Number(process.env.SHARD_COUNT);
|
||||
|
|
@ -10547,6 +10541,15 @@ class Client extends EventEmitter {
|
|||
return this.readyAt ? this.readyAt.getTime() : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the client is in a browser environment
|
||||
* @type {boolean}
|
||||
* @readonly
|
||||
*/
|
||||
get browser() {
|
||||
return typeof window !== 'undefined';
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs the client in. If successful, resolves with the account's token. <warn>If you're making a bot, it's
|
||||
* much better to use a bot account rather than a user account.
|
||||
|
|
|
|||
2
discord.indev.min.js
vendored
2
discord.indev.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue