mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix: use Object.keys instead of Object.values for node 6 (#2487)
This commit is contained in:
@@ -16,7 +16,8 @@ class RESTManager {
|
||||
}
|
||||
|
||||
destroy() {
|
||||
for (const handler of Object.values(this.handlers)) {
|
||||
for (const handlerKey of Object.keys(this.handlers)) {
|
||||
const handler = this.handlers[handlerKey];
|
||||
if (handler.destroy) handler.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user