Skip to content

Commit

Permalink
fix(GuildMemberManager): Use actually random nonce in fetch (#4884)
Browse files Browse the repository at this point in the history
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
  • Loading branch information
wasdennnoch and vladfrangu committed Oct 17, 2020
1 parent c412cd7 commit 937153a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/managers/GuildMemberManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const { Error, TypeError, RangeError } = require('../errors');
const GuildMember = require('../structures/GuildMember');
const Collection = require('../util/Collection');
const { Events, OPCodes } = require('../util/Constants');
const SnowflakeUtil = require('../util/Snowflake');

/**
* Manages API methods for GuildMembers and stores their cache.
Expand Down Expand Up @@ -263,7 +264,7 @@ class GuildMemberManager extends BaseManager {
user: user_ids,
query,
time = 120e3,
nonce = Date.now().toString(16),
nonce = SnowflakeUtil.generate(),
force = false,
} = {}) {
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 937153a

Please sign in to comment.