seedcord 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1751,15 +1751,15 @@ function EventCatchable(options) {
|
|
|
1751
1751
|
if (!(err instanceof Error)) throw err;
|
|
1752
1752
|
this.setErrored();
|
|
1753
1753
|
if (log) console.error(err);
|
|
1754
|
-
if (typeof silent === "boolean" && silent) return;
|
|
1755
|
-
if (typeof silent !== "boolean" && silent.some((errorType) => err instanceof errorType)) {
|
|
1756
|
-
return;
|
|
1757
|
-
}
|
|
1758
1754
|
const eventArgs = Array.isArray(this.getEvent()) ? this.getEvent() : [
|
|
1759
1755
|
this.getEvent()
|
|
1760
1756
|
];
|
|
1761
1757
|
const msg = eventArgs.find((x) => x instanceof discord_js.Message);
|
|
1762
1758
|
const { response } = extractErrorResponse(err, this.core, msg?.guild ?? null, msg?.author ?? null, eventArgs);
|
|
1759
|
+
if (typeof silent === "boolean" && silent) return;
|
|
1760
|
+
if (typeof silent !== "boolean" && silent.some((errorType) => err instanceof errorType)) {
|
|
1761
|
+
return;
|
|
1762
|
+
}
|
|
1763
1763
|
if (!msg) return;
|
|
1764
1764
|
await msg.reply({
|
|
1765
1765
|
embeds: [
|