From ef303ff67e70ae1db3bb9d5305ca3bb824ae2741 Mon Sep 17 00:00:00 2001 From: Evan Tung Date: Mon, 9 Oct 2023 21:07:32 -0400 Subject: [PATCH] await update of discord mod options --- commands/sibyl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/sibyl.ts b/commands/sibyl.ts index 135d9ed..9a62e2d 100644 --- a/commands/sibyl.ts +++ b/commands/sibyl.ts @@ -19,7 +19,7 @@ async function execute(interaction: ChatInputCommandInteraction) { communityID: interaction.guildId, discord_log_channel: interaction.options.get("log_channel")!.value!.toString() }; - Communities.update(data); + await Communities.update(data); interaction.followUp(`Log Channel has been updated to <#${(await Communities.read(interaction.guildId!))?.discord_log_channel}>`); } if (interaction.options.get("notify_role")) { @@ -27,7 +27,7 @@ async function execute(interaction: ChatInputCommandInteraction) { communityID: interaction.guildId, discord_notify_target: interaction.options.get("notify_role")!.value!.toString() }; - Communities.update(data); + await Communities.update(data); interaction.followUp(`Notification Target has been updated to <@&${(await Communities.read(interaction.guildId!))?.discord_notify_target}>`); } } else if (interaction.options.get("log_channel") || interaction.options.get("notify_role")) {