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 });