mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
fix: remove for..in in favor of Object.keys (#3745)
This commit is contained in:
@@ -238,7 +238,7 @@ class RESTMethods {
|
||||
include_nsfw: options.nsfw,
|
||||
};
|
||||
|
||||
for (const key in options) if (options[key] === undefined) delete options[key];
|
||||
for (const key of Object.keys(options)) if (options[key] === undefined) delete options[key];
|
||||
const queryString = (querystring.stringify(options).match(/[^=&?]+=[^=&?]+/g) || []).join('&');
|
||||
|
||||
let endpoint;
|
||||
|
||||
Reference in New Issue
Block a user