summaryrefslogtreecommitdiff
path: root/src/commands/teawiespam.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/teawiespam.rs')
-rw-r--r--src/commands/teawiespam.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/teawiespam.rs b/src/commands/teawiespam.rs
index da01af9..aeea255 100644
--- a/src/commands/teawiespam.rs
+++ b/src/commands/teawiespam.rs
@@ -1,4 +1,3 @@
-use crate::utils;
use crate::Context;
use color_eyre::eyre::Result;
@@ -8,7 +7,8 @@ use log::*;
#[poise::command(slash_command, prefix_command)]
pub async fn teawiespam(ctx: Context<'_>) -> Result<()> {
let gid = ctx.guild_id().unwrap_or_default();
- if !utils::is_guild_allowed(gid) {
+
+ if !ctx.data().settings.is_guild_allowed(gid) {
info!("not running teawiespam command in {gid}");
return Ok(());
}