From 904259063831738d357a8092bee7c0e30988b0f6 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 6 Dec 2023 03:57:33 -0500 Subject: refactor: use reactboard-v2 yay! we don't need to fetch every single reaction from every guild whenever a new one is triggered --- src/commands/moderation/config.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/commands/moderation') diff --git a/src/commands/moderation/config.rs b/src/commands/moderation/config.rs index 967e585..64cdb83 100644 --- a/src/commands/moderation/config.rs +++ b/src/commands/moderation/config.rs @@ -1,8 +1,7 @@ use std::str::FromStr; use crate::{storage, Context}; -use settings::{Settings, SettingsProperties}; -use storage::settings; +use storage::{Settings, SettingsProperties}; use color_eyre::eyre::{eyre, Result}; use log::*; @@ -125,7 +124,7 @@ pub async fn set( if previous_settings != settings { debug!("Updating settings key for {gid}"); - storage.create_settings_key(settings).await?; + storage.create_guild_settings(settings).await?; ctx.reply("Configuration updated!").await?; } else { debug!("Not updating settings key for {gid} since no changes were made"); -- cgit v1.2.3