We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e196dd commit f88f713Copy full SHA for f88f713
README.md
@@ -1,4 +1,4 @@
1
-# ts-bot-ramework
+# ts-bot-framework
2
3
To install dependencies:
4
src/index.ts
@@ -37,7 +37,11 @@ client.on("ready", () => {
37
client.on("interactionCreate", async (interaction) => {
38
if (interaction.isCommand()) {
39
console.log(`Received command: ${interaction.commandName}`);
40
- await handleCommand(interaction);
+ try {
41
+ await handleCommand(interaction);
42
+ } catch (e) {
43
+ console.error(e);
44
+ }
45
}
46
if (interaction.isButton()) {
47
console.log(`Received button: ${interaction.customId}`);
0 commit comments