Webpack build for branch master: dd8907472c

This commit is contained in:
Travis CI 2017-03-21 07:19:01 +00:00
parent f5a7c6f563
commit b234a8d047
2 changed files with 7 additions and 1 deletions

View file

@ -16558,6 +16558,12 @@ class RESTMethods {
return new Promise((resolve, reject) => { // eslint-disable-line complexity
if (typeof content !== 'undefined') content = this.client.resolver.resolveString(content);
// The nonce has to be a uint64 :<
if (typeof nonce !== 'undefined') {
nonce = parseInt(nonce);
if (isNaN(nonce) || nonce < 0) throw new RangeError('Message nonce must fit in an unsigned 64-bit integer.');
}
if (content) {
if (split && typeof split !== 'object') split = {};

File diff suppressed because one or more lines are too long