mirror of
https://github.com/danbulant/discord.js
synced 2026-06-24 17:21:59 +00:00
Webpack build for branch master: 70b35c85d6
This commit is contained in:
parent
331d744983
commit
4eae81fed5
2 changed files with 76 additions and 20 deletions
|
|
@ -63,7 +63,7 @@
|
||||||
/******/ __webpack_require__.p = "";
|
/******/ __webpack_require__.p = "";
|
||||||
|
|
||||||
/******/ // Load entry module and return exports
|
/******/ // Load entry module and return exports
|
||||||
/******/ return __webpack_require__(__webpack_require__.s = 160);
|
/******/ return __webpack_require__(__webpack_require__.s = 161);
|
||||||
/******/ })
|
/******/ })
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
/******/ ([
|
/******/ ([
|
||||||
|
|
@ -240,6 +240,16 @@ const Endpoints = exports.Endpoints = {
|
||||||
emoji: (emojiID) => `${Endpoints.CDN}/emojis/${emojiID}.png`,
|
emoji: (emojiID) => `${Endpoints.CDN}/emojis/${emojiID}.png`,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The current status of the client. Here are the available statuses:
|
||||||
|
* - READY
|
||||||
|
* - CONNECTING
|
||||||
|
* - RECONNECTING
|
||||||
|
* - IDLE
|
||||||
|
* - NEARLY
|
||||||
|
* - DISCONNECTED
|
||||||
|
* @typedef {number} Status
|
||||||
|
*/
|
||||||
exports.Status = {
|
exports.Status = {
|
||||||
READY: 0,
|
READY: 0,
|
||||||
CONNECTING: 1,
|
CONNECTING: 1,
|
||||||
|
|
@ -249,6 +259,23 @@ exports.Status = {
|
||||||
DISCONNECTED: 5,
|
DISCONNECTED: 5,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The current status of a voice connection. Here are the available statuses:
|
||||||
|
* - CONNECTED
|
||||||
|
* - CONNECTING
|
||||||
|
* - AUTHENTICATING
|
||||||
|
* - RECONNECTING
|
||||||
|
* - DISCONNECTED
|
||||||
|
* @typedef {number} VoiceStatus
|
||||||
|
*/
|
||||||
|
exports.VoiceStatus = {
|
||||||
|
CONNECTED: 0,
|
||||||
|
CONNECTING: 1,
|
||||||
|
AUTHENTICATING: 2,
|
||||||
|
RECONNECTING: 3,
|
||||||
|
DISCONNECTED: 4,
|
||||||
|
};
|
||||||
|
|
||||||
exports.ChannelTypes = {
|
exports.ChannelTypes = {
|
||||||
TEXT: 0,
|
TEXT: 0,
|
||||||
DM: 1,
|
DM: 1,
|
||||||
|
|
@ -3683,7 +3710,7 @@ class TextBasedChannel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.applyToClass = (structure, full = false) => {
|
exports.applyToClass = (structure, full = false, ignore = []) => {
|
||||||
const props = ['send', 'sendMessage', 'sendEmbed', 'sendFile', 'sendCode'];
|
const props = ['send', 'sendMessage', 'sendEmbed', 'sendFile', 'sendCode'];
|
||||||
if (full) {
|
if (full) {
|
||||||
props.push(
|
props.push(
|
||||||
|
|
@ -3702,6 +3729,7 @@ exports.applyToClass = (structure, full = false) => {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
for (const prop of props) {
|
for (const prop of props) {
|
||||||
|
if (ignore.includes(prop)) continue;
|
||||||
Object.defineProperty(structure.prototype, prop, Object.getOwnPropertyDescriptor(TextBasedChannel.prototype, prop));
|
Object.defineProperty(structure.prototype, prop, Object.getOwnPropertyDescriptor(TextBasedChannel.prototype, prop));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -5307,11 +5335,11 @@ class GroupDMChannel extends Channel {
|
||||||
get typingCount() { return; }
|
get typingCount() { return; }
|
||||||
createCollector() { return; }
|
createCollector() { return; }
|
||||||
awaitMessages() { return; }
|
awaitMessages() { return; }
|
||||||
bulkDelete() { return; }
|
// doesn't work on group DMs; bulkDelete() { return; }
|
||||||
_cacheMessage() { return; }
|
_cacheMessage() { return; }
|
||||||
}
|
}
|
||||||
|
|
||||||
TextBasedChannel.applyToClass(GroupDMChannel, true);
|
TextBasedChannel.applyToClass(GroupDMChannel, true, ['bulkDelete']);
|
||||||
|
|
||||||
module.exports = GroupDMChannel;
|
module.exports = GroupDMChannel;
|
||||||
|
|
||||||
|
|
@ -9532,6 +9560,7 @@ module.exports = {
|
||||||
"@types/node": "^7.0.0",
|
"@types/node": "^7.0.0",
|
||||||
"long": "^3.2.0",
|
"long": "^3.2.0",
|
||||||
"pako": "^1.0.0",
|
"pako": "^1.0.0",
|
||||||
|
"prism-media": "hydrabolt/prism-media",
|
||||||
"superagent": "^3.4.0",
|
"superagent": "^3.4.0",
|
||||||
"tweetnacl": "^0.14.0",
|
"tweetnacl": "^0.14.0",
|
||||||
"ws": "^2.0.0"
|
"ws": "^2.0.0"
|
||||||
|
|
@ -9541,6 +9570,7 @@ module.exports = {
|
||||||
"erlpack": "hammerandchisel/erlpack",
|
"erlpack": "hammerandchisel/erlpack",
|
||||||
"node-opus": "^0.2.0",
|
"node-opus": "^0.2.0",
|
||||||
"opusscript": "^0.0.2",
|
"opusscript": "^0.0.2",
|
||||||
|
"sodium": "^2.0.1",
|
||||||
"uws": "^0.12.0"
|
"uws": "^0.12.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
@ -9557,9 +9587,11 @@ module.exports = {
|
||||||
"ws": false,
|
"ws": false,
|
||||||
"uws": false,
|
"uws": false,
|
||||||
"erlpack": false,
|
"erlpack": false,
|
||||||
|
"prism-media": false,
|
||||||
"opusscript": false,
|
"opusscript": false,
|
||||||
"node-opus": false,
|
"node-opus": false,
|
||||||
"tweetnacl": false,
|
"tweetnacl": false,
|
||||||
|
"sodium": false,
|
||||||
"src/sharding/Shard.js": false,
|
"src/sharding/Shard.js": false,
|
||||||
"src/sharding/ShardClientUtil.js": false,
|
"src/sharding/ShardClientUtil.js": false,
|
||||||
"src/sharding/ShardingManager.js": false,
|
"src/sharding/ShardingManager.js": false,
|
||||||
|
|
@ -9572,12 +9604,13 @@ module.exports = {
|
||||||
"src/client/voice/pcm/ConverterEngineList.js": false,
|
"src/client/voice/pcm/ConverterEngineList.js": false,
|
||||||
"src/client/voice/pcm/FfmpegConverterEngine.js": false,
|
"src/client/voice/pcm/FfmpegConverterEngine.js": false,
|
||||||
"src/client/voice/player/AudioPlayer.js": false,
|
"src/client/voice/player/AudioPlayer.js": false,
|
||||||
"src/client/voice/player/BasePlayer.js": false,
|
|
||||||
"src/client/voice/player/DefaultPlayer.js": false,
|
|
||||||
"src/client/voice/receiver/VoiceReadable.js": false,
|
"src/client/voice/receiver/VoiceReadable.js": false,
|
||||||
"src/client/voice/receiver/VoiceReceiver.js": false,
|
"src/client/voice/receiver/VoiceReceiver.js": false,
|
||||||
|
"src/client/voice/util/Secretbox.js": false,
|
||||||
"src/client/voice/util/SecretKey.js": false,
|
"src/client/voice/util/SecretKey.js": false,
|
||||||
|
"src/client/voice/util/VolumeInterface.js": false,
|
||||||
"src/client/voice/ClientVoiceManager.js": false,
|
"src/client/voice/ClientVoiceManager.js": false,
|
||||||
|
"src/client/voice/VoiceBroadcast.js": false,
|
||||||
"src/client/voice/VoiceConnection.js": false,
|
"src/client/voice/VoiceConnection.js": false,
|
||||||
"src/client/voice/VoiceUDPClient.js": false,
|
"src/client/voice/VoiceUDPClient.js": false,
|
||||||
"src/client/voice/VoiceWebSocket.js": false
|
"src/client/voice/VoiceWebSocket.js": false
|
||||||
|
|
@ -9984,11 +10017,11 @@ class DMChannel extends Channel {
|
||||||
get typingCount() { return; }
|
get typingCount() { return; }
|
||||||
createCollector() { return; }
|
createCollector() { return; }
|
||||||
awaitMessages() { return; }
|
awaitMessages() { return; }
|
||||||
bulkDelete() { return; }
|
// doesn't work on DM channels; bulkDelete() { return; }
|
||||||
_cacheMessage() { return; }
|
_cacheMessage() { return; }
|
||||||
}
|
}
|
||||||
|
|
||||||
TextBasedChannel.applyToClass(DMChannel, true);
|
TextBasedChannel.applyToClass(DMChannel, true, ['bulkDelete']);
|
||||||
|
|
||||||
module.exports = DMChannel;
|
module.exports = DMChannel;
|
||||||
|
|
||||||
|
|
@ -13048,6 +13081,7 @@ const ActionsManager = __webpack_require__(83);
|
||||||
const Collection = __webpack_require__(3);
|
const Collection = __webpack_require__(3);
|
||||||
const Presence = __webpack_require__(6).Presence;
|
const Presence = __webpack_require__(6).Presence;
|
||||||
const ShardClientUtil = __webpack_require__(155);
|
const ShardClientUtil = __webpack_require__(155);
|
||||||
|
const VoiceBroadcast = __webpack_require__(157);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The main hub for interacting with the Discord API, and the starting point for any bot.
|
* The main hub for interacting with the Discord API, and the starting point for any bot.
|
||||||
|
|
@ -13178,6 +13212,12 @@ class Client extends EventEmitter {
|
||||||
*/
|
*/
|
||||||
this.readyAt = null;
|
this.readyAt = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Active voice broadcasts that have been created
|
||||||
|
* @type {VoiceBroadcast[]}
|
||||||
|
*/
|
||||||
|
this.broadcasts = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Previous heartbeat pings of the websocket (most recent first, limited to three elements)
|
* Previous heartbeat pings of the websocket (most recent first, limited to three elements)
|
||||||
* @type {number[]}
|
* @type {number[]}
|
||||||
|
|
@ -13278,6 +13318,16 @@ class Client extends EventEmitter {
|
||||||
return os.platform() === 'browser';
|
return os.platform() === 'browser';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a voice broadcast.
|
||||||
|
* @returns {VoiceBroadcast}
|
||||||
|
*/
|
||||||
|
createVoiceBroadcast() {
|
||||||
|
const broadcast = new VoiceBroadcast(this);
|
||||||
|
this.broadcasts.push(broadcast);
|
||||||
|
return broadcast;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs the client in, establishing a websocket connection to Discord.
|
* Logs the client in, establishing a websocket connection to Discord.
|
||||||
* <info>Both bot and regular user accounts are supported, but it is highly recommended to use a bot account whenever
|
* <info>Both bot and regular user accounts are supported, but it is highly recommended to use a bot account whenever
|
||||||
|
|
@ -23970,13 +24020,13 @@ if (browser) {
|
||||||
WebSocket = window.WebSocket; // eslint-disable-line no-undef
|
WebSocket = window.WebSocket; // eslint-disable-line no-undef
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
WebSocket = __webpack_require__(158);
|
|
||||||
} catch (err) {
|
|
||||||
WebSocket = __webpack_require__(159);
|
WebSocket = __webpack_require__(159);
|
||||||
|
} catch (err) {
|
||||||
|
WebSocket = __webpack_require__(160);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
erlpack = __webpack_require__(157);
|
erlpack = __webpack_require__(158);
|
||||||
serialize = erlpack.pack;
|
serialize = erlpack.pack;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
erlpack = null;
|
erlpack = null;
|
||||||
|
|
@ -25657,6 +25707,12 @@ module.exports = VoiceRegion;
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 160 */
|
/* 160 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
/* (ignored) */
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 161 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
const Util = __webpack_require__(4);
|
const Util = __webpack_require__(4);
|
||||||
|
|
|
||||||
18
discord.master.min.js
vendored
18
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue