mirror of
https://github.com/danbulant/discord.js
synced 2026-06-20 23:21:04 +00:00
Webpack build for branch master: dd8907472c
This commit is contained in:
parent
f5a7c6f563
commit
b234a8d047
2 changed files with 7 additions and 1 deletions
|
|
@ -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 = {};
|
||||
|
||||
|
|
|
|||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue