@notenoughupdates/discord-akairo
Advanced tools
Comparing version 9.0.10-dev.1644714370.AmusedGrape.1644714568.f86f362 to 9.0.10-dev.1644716050.2b9ae1a
{ | ||
"name": "@notenoughupdates/discord-akairo", | ||
"version": "9.0.10-dev.1644714370.AmusedGrape.1644714568.f86f362", | ||
"version": "9.0.10-dev.1644716050.2b9ae1a", | ||
"description": "A highly customizable bot framework for Discord.js.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/index.js", |
@@ -254,4 +254,2 @@ "use strict"; | ||
}); | ||
console.dir(currentGlobalCommands); | ||
console.dir(slashCommandsApp); | ||
if (!Util_js_1.Util.deepEquals(currentGlobalCommands, slashCommandsApp)) { | ||
@@ -311,4 +309,2 @@ this.client.emit("akairoDebug", "[registerInteractionCommands] Updating global interaction commands.", slashCommandsApp); | ||
}); | ||
console.dir(currentGuildCommands); | ||
console.dir(sortedCommands); | ||
if (!Util_js_1.Util.deepEquals(currentGuildCommands, sortedCommands)) { | ||
@@ -315,0 +311,0 @@ this.client.emit("akairoDebug", `[registerInteractionCommands] Updating guild commands for ${guild.name}.`, sortedCommands); |
@@ -115,2 +115,14 @@ "use strict"; | ||
} | ||
for (const key in newB) { | ||
if (ignoreUndefined && newA[key] === undefined && newB[key] === undefined) | ||
continue; | ||
if (!(key in newA)) | ||
return false; | ||
if (typeof newB[key] === "object" && typeof newA[key] === "object") { | ||
if (!this.deepEquals(newA[key], newB[key], { ignoreUndefined, ignoreArrayOrder })) | ||
return false; | ||
} | ||
else if (newA[key] !== newB[key]) | ||
return false; | ||
} | ||
return true; | ||
@@ -117,0 +129,0 @@ } |
{ | ||
"name": "@notenoughupdates/discord-akairo", | ||
"version": "9.0.10-dev.1644714370.AmusedGrape.1644714568.f86f362", | ||
"version": "9.0.10-dev.1644716050.2b9ae1a", | ||
"description": "A highly customizable bot framework for Discord.js.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/index.js", |
@@ -472,5 +472,2 @@ import { | ||
console.dir(currentGlobalCommands); | ||
console.dir(slashCommandsApp); | ||
if (!Util.deepEquals(currentGlobalCommands, slashCommandsApp)) { | ||
@@ -527,5 +524,2 @@ this.client.emit("akairoDebug", "[registerInteractionCommands] Updating global interaction commands.", slashCommandsApp); | ||
console.dir(currentGuildCommands); | ||
console.dir(sortedCommands); | ||
if (!Util.deepEquals(currentGuildCommands, sortedCommands)) { | ||
@@ -532,0 +526,0 @@ this.client.emit( |
@@ -115,2 +115,9 @@ import EventEmitter from "events"; | ||
} | ||
for (const key in newB) { | ||
if (ignoreUndefined && newA[key] === undefined && newB[key] === undefined) continue; | ||
if (!(key in newA)) return false; | ||
if (typeof newB[key] === "object" && typeof newA[key] === "object") { | ||
if (!this.deepEquals(newA[key], newB[key], { ignoreUndefined, ignoreArrayOrder })) return false; | ||
} else if (newA[key] !== newB[key]) return false; | ||
} | ||
return true; | ||
@@ -117,0 +124,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
957245
16813