@conflict/beta
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -34,3 +34,3 @@ import Discord, { | ||
} | ||
const { token, intents } = config.default; | ||
const { token, intents, errorHandler } = config.default; | ||
@@ -134,2 +134,3 @@ const client = new Client({ intents: (intents || ["GUILD_MESSAGES"]).map(intent => Intents.FLAGS[intent] ) }); | ||
try { | ||
if (errorHandler) return errorHandler(err, interaction); | ||
interaction.reply({ embeds: [ | ||
@@ -143,2 +144,3 @@ new MessageEmbed() | ||
} catch (nestedErr) { | ||
if (errorHandler) return errorHandler(err, interaction); | ||
interaction.channel.send( | ||
@@ -145,0 +147,0 @@ new MessageEmbed() |
{ | ||
"name": "@conflict/beta", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "The first and only UI framework for Discord bots", | ||
@@ -5,0 +5,0 @@ "main": "exports.js", |
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
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
28145
786