Skip to content

Commit

Permalink
Better error message, Package Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeAspy committed Jan 29, 2024
1 parent 1f87807 commit 1132344
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 44 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"devDependencies": {
"@types/node": "^20.11.10",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"eslint": "^8.56.0",
"typescript": "^5.3.3"
},
Expand Down
78 changes: 39 additions & 39 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions src/handler/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ export async function handleCommand(
) {
try {
await commands.get(interaction.commandName)?.execute(interaction);
} catch (error) {
} catch (error:unknown) {
console.error(error);
await interaction.reply({
content:
"There was an error while executing this command! `debug: detected in index.ts`",
content: `There was an error while executing this command! Debug: \`${(error as Error).message}\``,
ephemeral: true,
});
}
Expand Down

0 comments on commit 1132344

Please sign in to comment.