From 1095537b341e2e92965eae76fbd0ddf6f66916f8 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Fri, 12 Jun 2026 09:45:05 -0600 Subject: [PATCH] Grr, Await --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d259a96..e5a6b8e 100644 --- a/index.js +++ b/index.js @@ -1427,7 +1427,7 @@ discord.on("interactionCreate", async (interaction) => { let output = "Dev Test Started:\n"; await interaction.reply({ content: output, ephemeral: true }); //1. Add current channel to db with a fake room (discordtest) - db.run(`INSERT INTO channels (channelid, iemchannel) VALUES (?, ?)`, [interaction.channel.id, "discordtest"], (err) => { + db.run(`INSERT INTO channels (channelid, iemchannel) VALUES (?, ?)`, [interaction.channel.id, "discordtest"], async (err) => { if (err) { console.error(err.message); await interaction.editReply({ content: output + "Failed to add channel to database.", ephemeral: true });