diff --git a/app.js b/app.js index 627dc3f..8175dd2 100644 --- a/app.js +++ b/app.js @@ -52,7 +52,8 @@ function handle_application_command(state, data, channel_id) { default: console.error(`unknown command: ${name}`); - return res.status(400).json({ error: "unknown command" }); + if (res) return res.status(400).json({ error: "unknown command" }); + else return null; } }