mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(MessagePayload): crash when resolving body (#10454)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -139,7 +139,7 @@ class MessagePayload {
|
||||
// If `nonce` isn't provided, generate one & set `enforceNonce`
|
||||
// Unless `enforceNonce` is explicitly set to `false`(not just falsy)
|
||||
if (nonce === undefined) {
|
||||
if (this.options.enforceNonce !== false && this.client.options.enforceNonce) {
|
||||
if (this.options.enforceNonce !== false && this.target.client.options.enforceNonce) {
|
||||
nonce = DiscordSnowflake.generate().toString();
|
||||
enforce_nonce = true;
|
||||
} else if (enforce_nonce) {
|
||||
|
||||
Reference in New Issue
Block a user