summaryrefslogtreecommitdiff
path: root/src/commands/moderation/config.rs
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-06 03:57:33 -0500
committerseth <[email protected]>2023-12-15 16:41:13 -0500
commit904259063831738d357a8092bee7c0e30988b0f6 (patch)
tree9290284e1ec3f639167e03b862ab776c74eddfc6 /src/commands/moderation/config.rs
parent14c417db576bc45e768143832750e6ed47d2d776 (diff)
refactor: use reactboard-v2
yay! we don't need to fetch every single reaction from every guild whenever a new one is triggered
Diffstat (limited to 'src/commands/moderation/config.rs')
-rw-r--r--src/commands/moderation/config.rs5
1 files changed, 2 insertions, 3 deletions
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");