mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +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() {
|
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();
|
if (handler.destroy) handler.destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user