mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 19:20:42 +00:00
Webpack build for branch master: 3e0c0f44a2
This commit is contained in:
parent
7fc9f3536f
commit
f5a7c6f563
2 changed files with 235 additions and 231 deletions
|
|
@ -471,7 +471,7 @@ exports.Colors = {
|
||||||
NOT_QUITE_BLACK: 0x23272A,
|
NOT_QUITE_BLACK: 0x23272A,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(24)))
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(18)))
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 1 */
|
/* 1 */
|
||||||
|
|
@ -1118,7 +1118,7 @@ class Util {
|
||||||
|
|
||||||
module.exports = Util;
|
module.exports = Util;
|
||||||
|
|
||||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(21).Buffer))
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(22).Buffer))
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 5 */
|
/* 5 */
|
||||||
|
|
@ -3570,7 +3570,7 @@ module.exports = Message;
|
||||||
/* 14 */
|
/* 14 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
const path = __webpack_require__(23);
|
const path = __webpack_require__(24);
|
||||||
const Message = __webpack_require__(13);
|
const Message = __webpack_require__(13);
|
||||||
const MessageCollector = __webpack_require__(33);
|
const MessageCollector = __webpack_require__(33);
|
||||||
const Collection = __webpack_require__(3);
|
const Collection = __webpack_require__(3);
|
||||||
|
|
@ -5356,6 +5356,192 @@ module.exports = GuildChannel;
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 18 */
|
/* 18 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
// shim for using process in browser
|
||||||
|
var process = module.exports = {};
|
||||||
|
|
||||||
|
// cached from whatever global is present so that test runners that stub it
|
||||||
|
// don't break things. But we need to wrap it in a try catch in case it is
|
||||||
|
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
||||||
|
// function because try/catches deoptimize in certain engines.
|
||||||
|
|
||||||
|
var cachedSetTimeout;
|
||||||
|
var cachedClearTimeout;
|
||||||
|
|
||||||
|
function defaultSetTimout() {
|
||||||
|
throw new Error('setTimeout has not been defined');
|
||||||
|
}
|
||||||
|
function defaultClearTimeout () {
|
||||||
|
throw new Error('clearTimeout has not been defined');
|
||||||
|
}
|
||||||
|
(function () {
|
||||||
|
try {
|
||||||
|
if (typeof setTimeout === 'function') {
|
||||||
|
cachedSetTimeout = setTimeout;
|
||||||
|
} else {
|
||||||
|
cachedSetTimeout = defaultSetTimout;
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
cachedSetTimeout = defaultSetTimout;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
if (typeof clearTimeout === 'function') {
|
||||||
|
cachedClearTimeout = clearTimeout;
|
||||||
|
} else {
|
||||||
|
cachedClearTimeout = defaultClearTimeout;
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
cachedClearTimeout = defaultClearTimeout;
|
||||||
|
}
|
||||||
|
} ())
|
||||||
|
function runTimeout(fun) {
|
||||||
|
if (cachedSetTimeout === setTimeout) {
|
||||||
|
//normal enviroments in sane situations
|
||||||
|
return setTimeout(fun, 0);
|
||||||
|
}
|
||||||
|
// if setTimeout wasn't available but was latter defined
|
||||||
|
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
||||||
|
cachedSetTimeout = setTimeout;
|
||||||
|
return setTimeout(fun, 0);
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
// when when somebody has screwed with setTimeout but no I.E. maddness
|
||||||
|
return cachedSetTimeout(fun, 0);
|
||||||
|
} catch(e){
|
||||||
|
try {
|
||||||
|
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
||||||
|
return cachedSetTimeout.call(null, fun, 0);
|
||||||
|
} catch(e){
|
||||||
|
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
||||||
|
return cachedSetTimeout.call(this, fun, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
function runClearTimeout(marker) {
|
||||||
|
if (cachedClearTimeout === clearTimeout) {
|
||||||
|
//normal enviroments in sane situations
|
||||||
|
return clearTimeout(marker);
|
||||||
|
}
|
||||||
|
// if clearTimeout wasn't available but was latter defined
|
||||||
|
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
||||||
|
cachedClearTimeout = clearTimeout;
|
||||||
|
return clearTimeout(marker);
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
// when when somebody has screwed with setTimeout but no I.E. maddness
|
||||||
|
return cachedClearTimeout(marker);
|
||||||
|
} catch (e){
|
||||||
|
try {
|
||||||
|
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
||||||
|
return cachedClearTimeout.call(null, marker);
|
||||||
|
} catch (e){
|
||||||
|
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
||||||
|
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
||||||
|
return cachedClearTimeout.call(this, marker);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
var queue = [];
|
||||||
|
var draining = false;
|
||||||
|
var currentQueue;
|
||||||
|
var queueIndex = -1;
|
||||||
|
|
||||||
|
function cleanUpNextTick() {
|
||||||
|
if (!draining || !currentQueue) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
draining = false;
|
||||||
|
if (currentQueue.length) {
|
||||||
|
queue = currentQueue.concat(queue);
|
||||||
|
} else {
|
||||||
|
queueIndex = -1;
|
||||||
|
}
|
||||||
|
if (queue.length) {
|
||||||
|
drainQueue();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function drainQueue() {
|
||||||
|
if (draining) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var timeout = runTimeout(cleanUpNextTick);
|
||||||
|
draining = true;
|
||||||
|
|
||||||
|
var len = queue.length;
|
||||||
|
while(len) {
|
||||||
|
currentQueue = queue;
|
||||||
|
queue = [];
|
||||||
|
while (++queueIndex < len) {
|
||||||
|
if (currentQueue) {
|
||||||
|
currentQueue[queueIndex].run();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
queueIndex = -1;
|
||||||
|
len = queue.length;
|
||||||
|
}
|
||||||
|
currentQueue = null;
|
||||||
|
draining = false;
|
||||||
|
runClearTimeout(timeout);
|
||||||
|
}
|
||||||
|
|
||||||
|
process.nextTick = function (fun) {
|
||||||
|
var args = new Array(arguments.length - 1);
|
||||||
|
if (arguments.length > 1) {
|
||||||
|
for (var i = 1; i < arguments.length; i++) {
|
||||||
|
args[i - 1] = arguments[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
queue.push(new Item(fun, args));
|
||||||
|
if (queue.length === 1 && !draining) {
|
||||||
|
runTimeout(drainQueue);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// v8 likes predictible objects
|
||||||
|
function Item(fun, array) {
|
||||||
|
this.fun = fun;
|
||||||
|
this.array = array;
|
||||||
|
}
|
||||||
|
Item.prototype.run = function () {
|
||||||
|
this.fun.apply(null, this.array);
|
||||||
|
};
|
||||||
|
process.title = 'browser';
|
||||||
|
process.browser = true;
|
||||||
|
process.env = {};
|
||||||
|
process.argv = [];
|
||||||
|
process.version = ''; // empty string to avoid regexp issues
|
||||||
|
process.versions = {};
|
||||||
|
|
||||||
|
function noop() {}
|
||||||
|
|
||||||
|
process.on = noop;
|
||||||
|
process.addListener = noop;
|
||||||
|
process.once = noop;
|
||||||
|
process.off = noop;
|
||||||
|
process.removeListener = noop;
|
||||||
|
process.removeAllListeners = noop;
|
||||||
|
process.emit = noop;
|
||||||
|
|
||||||
|
process.binding = function (name) {
|
||||||
|
throw new Error('process.binding is not supported');
|
||||||
|
};
|
||||||
|
|
||||||
|
process.cwd = function () { return '/' };
|
||||||
|
process.chdir = function (dir) {
|
||||||
|
throw new Error('process.chdir is not supported');
|
||||||
|
};
|
||||||
|
process.umask = function() { return 0; };
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 19 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
const Channel = __webpack_require__(8);
|
const Channel = __webpack_require__(8);
|
||||||
|
|
@ -5541,7 +5727,7 @@ module.exports = GroupDMChannel;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 19 */
|
/* 20 */
|
||||||
/***/ (function(module, exports) {
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -5596,10 +5782,10 @@ module.exports = ReactionEmoji;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 20 */
|
/* 21 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
const path = __webpack_require__(23);
|
const path = __webpack_require__(24);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a webhook
|
* Represents a webhook
|
||||||
|
|
@ -5817,7 +6003,7 @@ module.exports = Webhook;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 21 */
|
/* 22 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
@ -7614,7 +7800,7 @@ function isnan (val) {
|
||||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(64)))
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(64)))
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 22 */
|
/* 23 */
|
||||||
/***/ (function(module, exports) {
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
// Copyright Joyent, Inc. and other Node contributors.
|
// Copyright Joyent, Inc. and other Node contributors.
|
||||||
|
|
@ -7922,7 +8108,7 @@ function isUndefined(arg) {
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 23 */
|
/* 24 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.
|
/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.
|
||||||
|
|
@ -8150,193 +8336,7 @@ var substr = 'ab'.substr(-1) === 'b'
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(24)))
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(18)))
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
/* 24 */
|
|
||||||
/***/ (function(module, exports) {
|
|
||||||
|
|
||||||
// shim for using process in browser
|
|
||||||
var process = module.exports = {};
|
|
||||||
|
|
||||||
// cached from whatever global is present so that test runners that stub it
|
|
||||||
// don't break things. But we need to wrap it in a try catch in case it is
|
|
||||||
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
||||||
// function because try/catches deoptimize in certain engines.
|
|
||||||
|
|
||||||
var cachedSetTimeout;
|
|
||||||
var cachedClearTimeout;
|
|
||||||
|
|
||||||
function defaultSetTimout() {
|
|
||||||
throw new Error('setTimeout has not been defined');
|
|
||||||
}
|
|
||||||
function defaultClearTimeout () {
|
|
||||||
throw new Error('clearTimeout has not been defined');
|
|
||||||
}
|
|
||||||
(function () {
|
|
||||||
try {
|
|
||||||
if (typeof setTimeout === 'function') {
|
|
||||||
cachedSetTimeout = setTimeout;
|
|
||||||
} else {
|
|
||||||
cachedSetTimeout = defaultSetTimout;
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
cachedSetTimeout = defaultSetTimout;
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
if (typeof clearTimeout === 'function') {
|
|
||||||
cachedClearTimeout = clearTimeout;
|
|
||||||
} else {
|
|
||||||
cachedClearTimeout = defaultClearTimeout;
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
cachedClearTimeout = defaultClearTimeout;
|
|
||||||
}
|
|
||||||
} ())
|
|
||||||
function runTimeout(fun) {
|
|
||||||
if (cachedSetTimeout === setTimeout) {
|
|
||||||
//normal enviroments in sane situations
|
|
||||||
return setTimeout(fun, 0);
|
|
||||||
}
|
|
||||||
// if setTimeout wasn't available but was latter defined
|
|
||||||
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
||||||
cachedSetTimeout = setTimeout;
|
|
||||||
return setTimeout(fun, 0);
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
||||||
return cachedSetTimeout(fun, 0);
|
|
||||||
} catch(e){
|
|
||||||
try {
|
|
||||||
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
||||||
return cachedSetTimeout.call(null, fun, 0);
|
|
||||||
} catch(e){
|
|
||||||
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
||||||
return cachedSetTimeout.call(this, fun, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
function runClearTimeout(marker) {
|
|
||||||
if (cachedClearTimeout === clearTimeout) {
|
|
||||||
//normal enviroments in sane situations
|
|
||||||
return clearTimeout(marker);
|
|
||||||
}
|
|
||||||
// if clearTimeout wasn't available but was latter defined
|
|
||||||
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
||||||
cachedClearTimeout = clearTimeout;
|
|
||||||
return clearTimeout(marker);
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
||||||
return cachedClearTimeout(marker);
|
|
||||||
} catch (e){
|
|
||||||
try {
|
|
||||||
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
||||||
return cachedClearTimeout.call(null, marker);
|
|
||||||
} catch (e){
|
|
||||||
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
||||||
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
||||||
return cachedClearTimeout.call(this, marker);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
var queue = [];
|
|
||||||
var draining = false;
|
|
||||||
var currentQueue;
|
|
||||||
var queueIndex = -1;
|
|
||||||
|
|
||||||
function cleanUpNextTick() {
|
|
||||||
if (!draining || !currentQueue) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
draining = false;
|
|
||||||
if (currentQueue.length) {
|
|
||||||
queue = currentQueue.concat(queue);
|
|
||||||
} else {
|
|
||||||
queueIndex = -1;
|
|
||||||
}
|
|
||||||
if (queue.length) {
|
|
||||||
drainQueue();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function drainQueue() {
|
|
||||||
if (draining) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var timeout = runTimeout(cleanUpNextTick);
|
|
||||||
draining = true;
|
|
||||||
|
|
||||||
var len = queue.length;
|
|
||||||
while(len) {
|
|
||||||
currentQueue = queue;
|
|
||||||
queue = [];
|
|
||||||
while (++queueIndex < len) {
|
|
||||||
if (currentQueue) {
|
|
||||||
currentQueue[queueIndex].run();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
queueIndex = -1;
|
|
||||||
len = queue.length;
|
|
||||||
}
|
|
||||||
currentQueue = null;
|
|
||||||
draining = false;
|
|
||||||
runClearTimeout(timeout);
|
|
||||||
}
|
|
||||||
|
|
||||||
process.nextTick = function (fun) {
|
|
||||||
var args = new Array(arguments.length - 1);
|
|
||||||
if (arguments.length > 1) {
|
|
||||||
for (var i = 1; i < arguments.length; i++) {
|
|
||||||
args[i - 1] = arguments[i];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
queue.push(new Item(fun, args));
|
|
||||||
if (queue.length === 1 && !draining) {
|
|
||||||
runTimeout(drainQueue);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
// v8 likes predictible objects
|
|
||||||
function Item(fun, array) {
|
|
||||||
this.fun = fun;
|
|
||||||
this.array = array;
|
|
||||||
}
|
|
||||||
Item.prototype.run = function () {
|
|
||||||
this.fun.apply(null, this.array);
|
|
||||||
};
|
|
||||||
process.title = 'browser';
|
|
||||||
process.browser = true;
|
|
||||||
process.env = {};
|
|
||||||
process.argv = [];
|
|
||||||
process.version = ''; // empty string to avoid regexp issues
|
|
||||||
process.versions = {};
|
|
||||||
|
|
||||||
function noop() {}
|
|
||||||
|
|
||||||
process.on = noop;
|
|
||||||
process.addListener = noop;
|
|
||||||
process.once = noop;
|
|
||||||
process.off = noop;
|
|
||||||
process.removeListener = noop;
|
|
||||||
process.removeAllListeners = noop;
|
|
||||||
process.emit = noop;
|
|
||||||
|
|
||||||
process.binding = function (name) {
|
|
||||||
throw new Error('process.binding is not supported');
|
|
||||||
};
|
|
||||||
|
|
||||||
process.cwd = function () { return '/' };
|
|
||||||
process.chdir = function (dir) {
|
|
||||||
throw new Error('process.chdir is not supported');
|
|
||||||
};
|
|
||||||
process.umask = function() { return 0; };
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 25 */
|
/* 25 */
|
||||||
|
|
@ -9289,7 +9289,7 @@ module.exports = isObject;
|
||||||
/* 27 */
|
/* 27 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
/* WEBPACK VAR INJECTION */(function(Buffer) {const path = __webpack_require__(23);
|
/* WEBPACK VAR INJECTION */(function(Buffer) {const path = __webpack_require__(24);
|
||||||
const fs = __webpack_require__(43);
|
const fs = __webpack_require__(43);
|
||||||
const request = __webpack_require__(25);
|
const request = __webpack_require__(25);
|
||||||
|
|
||||||
|
|
@ -9301,7 +9301,7 @@ const Guild = __webpack_require__(16);
|
||||||
const Channel = __webpack_require__(8);
|
const Channel = __webpack_require__(8);
|
||||||
const GuildMember = __webpack_require__(12);
|
const GuildMember = __webpack_require__(12);
|
||||||
const Emoji = __webpack_require__(11);
|
const Emoji = __webpack_require__(11);
|
||||||
const ReactionEmoji = __webpack_require__(19);
|
const ReactionEmoji = __webpack_require__(20);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The DataResolver identifies different objects and tries to resolve a specific piece of information from them, e.g.
|
* The DataResolver identifies different objects and tries to resolve a specific piece of information from them, e.g.
|
||||||
|
|
@ -9617,7 +9617,7 @@ class ClientDataResolver {
|
||||||
|
|
||||||
module.exports = ClientDataResolver;
|
module.exports = ClientDataResolver;
|
||||||
|
|
||||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(21).Buffer))
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(22).Buffer))
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 28 */
|
/* 28 */
|
||||||
|
|
@ -10373,7 +10373,7 @@ module.exports = MessageAttachment;
|
||||||
/* 33 */
|
/* 33 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
const EventEmitter = __webpack_require__(22).EventEmitter;
|
const EventEmitter = __webpack_require__(23).EventEmitter;
|
||||||
const Collection = __webpack_require__(3);
|
const Collection = __webpack_require__(3);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -10832,7 +10832,7 @@ module.exports = MessageEmbed;
|
||||||
|
|
||||||
const Collection = __webpack_require__(3);
|
const Collection = __webpack_require__(3);
|
||||||
const Emoji = __webpack_require__(11);
|
const Emoji = __webpack_require__(11);
|
||||||
const ReactionEmoji = __webpack_require__(19);
|
const ReactionEmoji = __webpack_require__(20);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a reaction to a message
|
* Represents a reaction to a message
|
||||||
|
|
@ -12803,7 +12803,7 @@ module.exports = RequestHandler;
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
/* WEBPACK VAR INJECTION */(function(process) {const os = __webpack_require__(15);
|
/* WEBPACK VAR INJECTION */(function(process) {const os = __webpack_require__(15);
|
||||||
const EventEmitter = __webpack_require__(22).EventEmitter;
|
const EventEmitter = __webpack_require__(23).EventEmitter;
|
||||||
const Constants = __webpack_require__(0);
|
const Constants = __webpack_require__(0);
|
||||||
const Permissions = __webpack_require__(6);
|
const Permissions = __webpack_require__(6);
|
||||||
const Util = __webpack_require__(4);
|
const Util = __webpack_require__(4);
|
||||||
|
|
@ -13348,13 +13348,13 @@ module.exports = Client;
|
||||||
* @param {string} info The debug information
|
* @param {string} info The debug information
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(24)))
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(18)))
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 47 */
|
/* 47 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
const Webhook = __webpack_require__(20);
|
const Webhook = __webpack_require__(21);
|
||||||
const RESTManager = __webpack_require__(44);
|
const RESTManager = __webpack_require__(44);
|
||||||
const ClientDataResolver = __webpack_require__(27);
|
const ClientDataResolver = __webpack_require__(27);
|
||||||
const Constants = __webpack_require__(0);
|
const Constants = __webpack_require__(0);
|
||||||
|
|
@ -15194,7 +15194,7 @@ const Emoji = __webpack_require__(11);
|
||||||
const TextChannel = __webpack_require__(40);
|
const TextChannel = __webpack_require__(40);
|
||||||
const VoiceChannel = __webpack_require__(41);
|
const VoiceChannel = __webpack_require__(41);
|
||||||
const GuildChannel = __webpack_require__(17);
|
const GuildChannel = __webpack_require__(17);
|
||||||
const GroupDMChannel = __webpack_require__(18);
|
const GroupDMChannel = __webpack_require__(19);
|
||||||
|
|
||||||
class ClientDataManager {
|
class ClientDataManager {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
|
|
@ -16507,11 +16507,11 @@ const GuildMember = __webpack_require__(12);
|
||||||
const Message = __webpack_require__(13);
|
const Message = __webpack_require__(13);
|
||||||
const Role = __webpack_require__(9);
|
const Role = __webpack_require__(9);
|
||||||
const Invite = __webpack_require__(31);
|
const Invite = __webpack_require__(31);
|
||||||
const Webhook = __webpack_require__(20);
|
const Webhook = __webpack_require__(21);
|
||||||
const UserProfile = __webpack_require__(137);
|
const UserProfile = __webpack_require__(137);
|
||||||
const OAuth2Application = __webpack_require__(36);
|
const OAuth2Application = __webpack_require__(36);
|
||||||
const Channel = __webpack_require__(8);
|
const Channel = __webpack_require__(8);
|
||||||
const GroupDMChannel = __webpack_require__(18);
|
const GroupDMChannel = __webpack_require__(19);
|
||||||
const Guild = __webpack_require__(16);
|
const Guild = __webpack_require__(16);
|
||||||
const VoiceRegion = __webpack_require__(138);
|
const VoiceRegion = __webpack_require__(138);
|
||||||
|
|
||||||
|
|
@ -17580,36 +17580,40 @@ module.exports = SequentialRequestHandler;
|
||||||
/* 99 */
|
/* 99 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
const Constants = __webpack_require__(0);
|
/* WEBPACK VAR INJECTION */(function(process) {const Constants = __webpack_require__(0);
|
||||||
|
|
||||||
class UserAgentManager {
|
class UserAgentManager {
|
||||||
constructor(restManager) {
|
constructor() {
|
||||||
this.restManager = restManager;
|
this.build(this.constructor.DEFAULT);
|
||||||
this._userAgent = {
|
|
||||||
url: 'https://github.com/hydrabolt/discord.js',
|
|
||||||
version: Constants.Package.version,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
set(info) {
|
set({ url, version } = {}) {
|
||||||
this._userAgent.url = info.url || 'https://github.com/hydrabolt/discord.js';
|
this.build({
|
||||||
this._userAgent.version = info.version || Constants.Package.version;
|
url: url || this.constructor.DFEAULT.url,
|
||||||
|
version: version || this.constructor.DEFAULT.version,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
get userAgent() {
|
build(ua) {
|
||||||
return `DiscordBot (${this._userAgent.url}, ${this._userAgent.version})`;
|
this.userAgent = `DiscordBot (${ua.url}, ${ua.version}) Node.js/${process.version}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UserAgentManager.DEFAULT = {
|
||||||
|
url: Constants.Package.homepage.split('#')[0],
|
||||||
|
version: Constants.Package.version,
|
||||||
|
};
|
||||||
|
|
||||||
module.exports = UserAgentManager;
|
module.exports = UserAgentManager;
|
||||||
|
|
||||||
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(18)))
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 100 */
|
/* 100 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
/* WEBPACK VAR INJECTION */(function(Buffer) {const browser = __webpack_require__(15).platform() === 'browser';
|
/* WEBPACK VAR INJECTION */(function(Buffer) {const browser = __webpack_require__(15).platform() === 'browser';
|
||||||
const EventEmitter = __webpack_require__(22).EventEmitter;
|
const EventEmitter = __webpack_require__(23).EventEmitter;
|
||||||
const Constants = __webpack_require__(0);
|
const Constants = __webpack_require__(0);
|
||||||
const convertToBuffer = __webpack_require__(4).convertToBuffer;
|
const convertToBuffer = __webpack_require__(4).convertToBuffer;
|
||||||
const zlib = __webpack_require__(43);
|
const zlib = __webpack_require__(43);
|
||||||
|
|
@ -17979,7 +17983,7 @@ class WebSocketManager extends EventEmitter {
|
||||||
|
|
||||||
module.exports = WebSocketManager;
|
module.exports = WebSocketManager;
|
||||||
|
|
||||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(21).Buffer))
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(22).Buffer))
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 101 */
|
/* 101 */
|
||||||
|
|
@ -19347,7 +19351,7 @@ module.exports = {
|
||||||
DMChannel: __webpack_require__(30),
|
DMChannel: __webpack_require__(30),
|
||||||
Emoji: __webpack_require__(11),
|
Emoji: __webpack_require__(11),
|
||||||
Game: __webpack_require__(7).Game,
|
Game: __webpack_require__(7).Game,
|
||||||
GroupDMChannel: __webpack_require__(18),
|
GroupDMChannel: __webpack_require__(19),
|
||||||
Guild: __webpack_require__(16),
|
Guild: __webpack_require__(16),
|
||||||
GuildChannel: __webpack_require__(17),
|
GuildChannel: __webpack_require__(17),
|
||||||
GuildMember: __webpack_require__(12),
|
GuildMember: __webpack_require__(12),
|
||||||
|
|
@ -19362,13 +19366,13 @@ module.exports = {
|
||||||
PartialGuildChannel: __webpack_require__(38),
|
PartialGuildChannel: __webpack_require__(38),
|
||||||
PermissionOverwrites: __webpack_require__(39),
|
PermissionOverwrites: __webpack_require__(39),
|
||||||
Presence: __webpack_require__(7).Presence,
|
Presence: __webpack_require__(7).Presence,
|
||||||
ReactionEmoji: __webpack_require__(19),
|
ReactionEmoji: __webpack_require__(20),
|
||||||
RichEmbed: __webpack_require__(48),
|
RichEmbed: __webpack_require__(48),
|
||||||
Role: __webpack_require__(9),
|
Role: __webpack_require__(9),
|
||||||
TextChannel: __webpack_require__(40),
|
TextChannel: __webpack_require__(40),
|
||||||
User: __webpack_require__(10),
|
User: __webpack_require__(10),
|
||||||
VoiceChannel: __webpack_require__(41),
|
VoiceChannel: __webpack_require__(41),
|
||||||
Webhook: __webpack_require__(20),
|
Webhook: __webpack_require__(21),
|
||||||
};
|
};
|
||||||
|
|
||||||
if (__webpack_require__(15).platform() === 'browser') window.Discord = module.exports; // eslint-disable-line no-undef
|
if (__webpack_require__(15).platform() === 'browser') window.Discord = module.exports; // eslint-disable-line no-undef
|
||||||
|
|
|
||||||
14
discord.master.min.js
vendored
14
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue