diff options
author | Jacob Janzen <jacob@jjanzen.ca> | 2024-12-08 03:55:03 +0000 |
---|---|---|
committer | Jacob Janzen <jacob@jjanzen.ca> | 2024-12-08 03:55:03 +0000 |
commit | caaf3e908102a3d23cd66ee38fcfdbd928125750 (patch) | |
tree | 547e2cfa97f2af34ff6e4e7b6a52d09310c4930a /app.js | |
parent | 659346f41447728d5dfde9dd1332f9bc590d6e84 (diff) |
fix double send bug
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -65,11 +65,7 @@ app.post('/', verifyKeyMiddleware(process.env.PUBLIC_KEY), async function (req, console.error(err); } }); - - cron.schedule(crontab, () => { - client.channels.cache.get(req.body.channel_id).send(message) - }); - } + } return res.send({ type: InteractionResponseType.CHANNEL_MESSAGE_WITH_SOURCE, |