Skip to content

Commit

Permalink
await update of discord mod options
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonejt committed Oct 10, 2023
1 parent fdd3d8e commit ef303ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/sibyl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ 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")) {
const data = {
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")) {
Expand Down

0 comments on commit ef303ff

Please sign in to comment.